module Algebrick::Types::Maybe

Public Instance Methods

maybe() { |value| ... } click to toggle source
# File lib/algebrick/types.rb, line 24
def maybe
  match self,
        on(None, nil),
        on(Some) { yield value }
end