class Unsound::Data::Maybe

@abstract

Public Class Methods

of(value) click to toggle source

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

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

# File lib/unsound/data/maybe.rb, line 14
def self.of(value)
  Just.new(value)
end

Private Instance Methods

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