module Ribimaybe::Maybe
Public Instance Methods
Maybe(value = nil, &fn)
click to toggle source
# File lib/ribimaybe.rb, line 180 def Maybe(value = nil, &fn) (value || fn) ? Just.new(value || fn.curry) : Nothing end