Method: Object#unless_nil

Defined in:
lib/Context/ExecutionProxy.rb

#unless_nil(&block) ⇒ Object

If the object is not nil, execute the block (or evaluate the property). Otherwise return nil.



57
58
59
# File 'lib/Context/ExecutionProxy.rb', line 57

def unless_nil(&block)
    execute_if(!nil?, &block)
end