Module: Falsey
- Included in:
- FalseClass, NilClass
- Defined in:
- lib/if.rb
Instance Method Summary collapse
Instance Method Details
#if(if_true, options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/if.rb', line 8 def if(if_true, = {}) if_false = .fetch(:else, ->{}) if_false.call end |