Class: RulerCoaster::Operator::Empty
- Defined in:
- lib/ruler_coaster/operator/empty.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #call(value) ⇒ Object
-
#initialize(*_args) ⇒ Empty
constructor
A new instance of Empty.
Constructor Details
#initialize(*_args) ⇒ Empty
Returns a new instance of Empty.
4 5 6 |
# File 'lib/ruler_coaster/operator/empty.rb', line 4 def initialize(*_args) super(nil) end |
Instance Method Details
#call(value) ⇒ Object
8 9 10 |
# File 'lib/ruler_coaster/operator/empty.rb', line 8 def call(value) value.to_s.empty? end |