class Opted::Result::Match::Matcher

Public Class Methods

new(match) click to toggle source
# File lib/opted/result/match.rb, line 13
def initialize(match)
  @match = match
end

Public Instance Methods

match(&block) click to toggle source
# File lib/opted/result/match.rb, line 17
def match(&block)
  match = MatchWithBranchChecking.new(@match)
  match.instance_eval(&block)
  match.mapped_value_or_error
end