class Maybe

Public Class Methods

from(value) click to toggle source
# File lib/matilda-maybe/maybe.rb, line 2
def self.from(value)
  if !value.nil?
    Just.new(value)
  else
    Nothing.new
  end
end