Method: Funkr::Types::Failable#bind

Defined in:
lib/funkr/types/failable.rb

#bind(&block) ⇒ Object



71
72
73
74
75
76
# File 'lib/funkr/types/failable.rb', line 71

def bind(&block)
  case self.const
  when :ok then yield(*self.data)
  else self
  end
end