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.
# File doc/extending_behavior.in.rb, line 8 def maybe(&block) case self when None when Some block.call value end end