Class: USaidWat::Right

Inherits:
Either
  • Object
show all
Defined in:
lib/usaidwat/either.rb

Instance Attribute Summary

Attributes inherited from Either

#value

Instance Method Summary collapse

Methods inherited from Either

#initialize, #left?

Constructor Details

This class inherits a constructor from USaidWat::Either

Instance Method Details

#>>(callable) ⇒ Object



33
34
35
# File 'lib/usaidwat/either.rb', line 33

def >>(callable)
  callable.call(self)
end

#right?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/usaidwat/either.rb', line 37

def right?
  true
end