Module: Bridgetown::Prioritizable
- Included in:
- Plugin, Rack::Routes
- Defined in:
- 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 '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 'lib/bridgetown-core/concerns/prioritizable.rb', line 50 def <=>(other) self.class <=> other.class end |