Module: Bridgetown::Prioritizable
- Included in:
- Builders::PluginBuilder, Plugin, Rack::Routes
- Defined in:
- bridgetown-core/lib/bridgetown-core/concerns/prioritizable.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#<=>(other) ⇒ Integer
Spaceship is priority [higher -> lower].
Class Method Details
.included(klass) ⇒ Object
42 43 44 |
# File 'bridgetown-core/lib/bridgetown-core/concerns/prioritizable.rb', line 42 def self.included(klass) klass.extend ClassMethods end |
Instance Method Details
#<=>(other) ⇒ Integer
Spaceship is priority [higher -> lower]
50 51 52 |
# File 'bridgetown-core/lib/bridgetown-core/concerns/prioritizable.rb', line 50 def <=>(other) self.class <=> other.class end |