Module: Kind::Either::Methods

Included in:
Kind
Defined in:
lib/kind/either/methods.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



13
14
15
# File 'lib/kind/either/methods.rb', line 13

def self.included(base)
  base.send(:private, :Left, :Right)
end

Instance Method Details

#Left(value) ⇒ Object



5
6
7
# File 'lib/kind/either/methods.rb', line 5

def Left(value)
  Either::Left[value]
end

#Right(value) ⇒ Object



9
10
11
# File 'lib/kind/either/methods.rb', line 9

def Right(value)
  Either::Right[value]
end