Class: Either::Base

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

Direct Known Subclasses

Left, Right

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Base

Returns a new instance of Base.



3
4
5
# File 'lib/trither/either.rb', line 3

def initialize(value)
  @value = value
end