Class: Put::PutsThing::NilOrder
- Inherits:
-
Put::PutsThing
- Object
- Put::PutsThing
- Put::PutsThing::NilOrder
- Defined in:
- lib/put/puts_thing/nil_order.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ NilOrder
constructor
A new instance of NilOrder.
- #value ⇒ Object
Methods inherited from Put::PutsThing
Constructor Details
#initialize(value) ⇒ NilOrder
Returns a new instance of NilOrder.
4 5 6 |
# File 'lib/put/puts_thing/nil_order.rb', line 4 def initialize(value) @value = value end |
Instance Method Details
#value ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/put/puts_thing/nil_order.rb', line 8 def value if @value.nil? nil else 0 end end |