class Unsound::Data::Either

@abstract

Public Class Methods

of(value) click to toggle source

Wraps a raw value in a {Data::Right}

@param value [Any] the value to wrap @return [Data::Right]

# File lib/unsound/data/either.rb, line 15
def self.of(value)
  Right.new(value)
end

Private Instance Methods

of(value) click to toggle source
# File lib/unsound/data/either.rb, line 28
def of(value)
  self.class.of(value)
end