class Alfred::Handler::HelpItem
Constants
- Base_Order
Public Class Methods
new(attributes = {}, &block)
click to toggle source
Calls superclass method
# File lib/alfred/handler/help.rb, line 9 def initialize(attributes = {}, &block) super(&block) initialize_attributes(attributes) end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/alfred/handler/help.rb, line 14 def <=>(other) self[:order] <=> other[:order] end
Private Instance Methods
initialize_attributes(attributes)
click to toggle source
# File lib/alfred/handler/help.rb, line 20 def initialize_attributes(attributes) attributes.each_pair do |att, value| self[att] = value end if attributes self[:order] = Base_Order unless self[:order] end