Class: Meer::CLI::ReverseOrder

Inherits:
Object
  • Object
show all
Defined in:
lib/meer/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ ReverseOrder

Returns a new instance of ReverseOrder.



128
129
130
# File 'lib/meer/cli.rb', line 128

def initialize obj
  @obj = obj
end

Instance Attribute Details

#objObject (readonly)

Returns the value of attribute obj.



127
128
129
# File 'lib/meer/cli.rb', line 127

def obj
  @obj
end

Instance Method Details

#<=>(other) ⇒ Object



132
133
134
# File 'lib/meer/cli.rb', line 132

def <=>(other)
  -(@obj <=> other.obj)
end