class Lingo::AgendaItem

Attributes

cmd[R]
param[R]

Public Class Methods

new(cmd, param = nil) click to toggle source
# File lib/lingo/agenda_item.rb, line 34
def initialize(cmd, param = nil)
  @cmd, @param = cmd || '', param || ''
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/lingo/agenda_item.rb, line 38
def <=>(other)
  other.is_a?(self.class) ? to_a <=> other.to_a : 1
end
inspect() click to toggle source
# File lib/lingo/agenda_item.rb, line 46
def inspect
  "*#{cmd.upcase}('#{param}')"
end
to_a() click to toggle source
# File lib/lingo/agenda_item.rb, line 42
def to_a
  [cmd, param]
end