Class: Alfred::Handler::HelpItem

Inherits:
Hash
  • Object
show all
Defined in:
lib/alfred/handler/help.rb

Constant Summary collapse

Base_Order =
10

Instance Method Summary collapse

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