class StreetFighter::EitherValue
Attributes
value[R]
Public Class Methods
new(value)
click to toggle source
# File lib/street_fighter/either_value.rb, line 5 def initialize value @value = value end
Public Instance Methods
==(other)
click to toggle source
# File lib/street_fighter/either_value.rb, line 21 def ==(other) self.value == other.value end
bind()
click to toggle source
# File lib/street_fighter/either_value.rb, line 13 def bind # (>>=) in Haskell raise NotImplementedError, "Bind not implemented here." end
failable()
click to toggle source
# File lib/street_fighter/either_value.rb, line 17 def failable # `fmap` in Haskell, but restricted to EitherValues raise NotImplementedError, "Bind not implemented here." end
match()
click to toggle source
# File lib/street_fighter/either_value.rb, line 9 def match # (>>) in Haskell raise NotImplementedError, "Follows not implemented here." end