Class: Meer::CLI::ReverseOrder
- Inherits:
-
Object
- Object
- Meer::CLI::ReverseOrder
- Defined in:
- lib/meer/cli.rb
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(obj) ⇒ ReverseOrder
constructor
A new instance of ReverseOrder.
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
#obj ⇒ Object (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 |