class StreetFighter::Right
Public Instance Methods
bind(func)
click to toggle source
# File lib/street_fighter/right.rb, line 16 def bind func func.call(value) end
match(other)
click to toggle source
# File lib/street_fighter/right.rb, line 3 def match other EitherCheck.new(other).run! other end
tournament(*fns)
click to toggle source
# File lib/street_fighter/right.rb, line 8 def tournament *fns return self if fns.empty? bind(fns.first).tap do |result| EitherCheck.new(result).run! end.tournament(*fns[1..-1]) end