class Opted::Result::Match::ErrMatch
Attributes
mapped_value_or_error[R]
Public Class Methods
new(error)
click to toggle source
# File lib/opted/result/match.rb, line 40 def initialize(error) @error = error end
Public Instance Methods
err() { |error| ... }
click to toggle source
# File lib/opted/result/match.rb, line 47 def err @mapped_value_or_error = yield @error end
ok()
click to toggle source
# File lib/opted/result/match.rb, line 44 def ok end