Module: Babl::Operators::Nullable::DSL
- Included in:
- Template
- Defined in:
- lib/babl/operators/nullable.rb
Instance Method Summary collapse
-
#nullable ⇒ Object
Nullify the current construction if the current element is Nil.
Instance Method Details
#nullable ⇒ Object
Nullify the current construction if the current element is Nil.
7 8 9 10 11 12 13 14 |
# File 'lib/babl/operators/nullable.rb', line 7 def nullable source { switch( nav(&:nil?) => nil, default => continue ) } end |