class Kleisli::Validation::Success
Public Instance Methods
*(other)
click to toggle source
# File lib/kleisli/validation.rb, line 10 def *(other) if other.class == Success self >-> f { f = f.to_proc other >-> val { Success(f.arity > 1 ? f.curry.call(val) : f.call(val)) } } else other end end
fmap(&f)
click to toggle source
# File lib/kleisli/validation.rb, line 23 def fmap(&f) Success.new(f.call(@right)) end
to_s()
click to toggle source
# File lib/kleisli/validation.rb, line 27 def to_s "Success(#{@right.inspect})" end
Also aliased as: inspect