Class: Alfred::Handler::HelpItem
- Inherits:
-
Hash
- Object
- Hash
- Alfred::Handler::HelpItem
- Defined in:
- lib/alfred/handler/help.rb
Constant Summary collapse
- Base_Order =
10
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(attributes = {}, &block) ⇒ HelpItem
constructor
A new instance of HelpItem.
Constructor Details
#initialize(attributes = {}, &block) ⇒ HelpItem
Returns a new instance of HelpItem.
9 10 11 12 |
# File 'lib/alfred/handler/help.rb', line 9 def initialize(attributes = {}, &block) super(&block) initialize_attributes(attributes) end |
Instance Method Details
#<=>(other) ⇒ Object
14 15 16 |
# File 'lib/alfred/handler/help.rb', line 14 def <=>(other) self[:order] <=> other[:order] end |