module Maybe
Types can be extended with usual syntax for modules and using Ruby supports module reopening.
Types can be extended with usual syntax for modules and using Ruby supports module reopening.
Public Instance Methods
maybe(&block)
click to toggle source
# File doc/extending_behavior.in.rb, line 8 def maybe(&block) case self when None when Some block.call value end end