Skip to content

Commit

Permalink
lib/types.rb: AgendaItem#<=> must not be private. (Notably for Rubini…
Browse files Browse the repository at this point in the history
…us compatibility.)

git-svn-id: http://prometheus-srv.uni-koeln.de/svn/lingo/trunk@172 65a00323-044e-4092-b5f7-804f0b922b11
  • Loading branch information
blackwinter committed Jun 1, 2011
1 parent 98cfae1 commit 90847b0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/types.rb
Expand Up @@ -265,14 +265,11 @@ class AgendaItem
include Comparable
attr_reader :cmd, :param

private

def initialize(cmd, param='')
@cmd = cmd || ''
@param = param || ''
end


def <=>(other)
return 1 unless other.is_a?(AgendaItem)
if self.cmd==other.cmd
Expand All @@ -282,9 +279,6 @@ def <=>(other)
end
end


public

def inspect
"*#{cmd.upcase}('#{param}')"
end
Expand Down

0 comments on commit 90847b0

Please sign in to comment.