Class: USaidWat::Left

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, #right?

Constructor Details

This class inherits a constructor from USaidWat::Either

Instance Method Details

#>>(callable) ⇒ Object



23
24
25
# File 'lib/usaidwat/either.rb', line 23

def >>(callable)
  self
end

#left?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/usaidwat/either.rb', line 27

def left?
  true
end