module Opted::Result::Match

Public Class Methods

match_error(error, &block) click to toggle source
# File lib/opted/result/match.rb, line 8
def self.match_error(error, &block)
  Matcher.new(ErrMatch.new(error)).match(&block)
end
match_value(value, &block) click to toggle source
# File lib/opted/result/match.rb, line 4
def self.match_value(value, &block)
  Matcher.new(OkMatch.new(value)).match(&block)
end