Module: Kansuu::Option
- Extended by:
- Util
- Defined in:
- lib/kansuu/option.rb
Instance Method Summary collapse
Methods included from Util
__define_func_from_method, __define_funcs_from_method, __module_functionize
Instance Method Details
#may ⇒ Object
7 8 9 |
# File 'lib/kansuu/option.rb', line 7 def may -> f, x { !x.nil? ? f[x] : x } % 2 end |