module Kind::Either::Methods

Public Class Methods

included(base) click to toggle source
# File lib/kind/either/methods.rb, line 13
def self.included(base)
  base.send(:private, :Left, :Right)
end

Public Instance Methods

Left(value) click to toggle source
# File lib/kind/either/methods.rb, line 5
def Left(value)
  Either::Left[value]
end
Right(value) click to toggle source
# File lib/kind/either/methods.rb, line 9
def Right(value)
  Either::Right[value]
end