Class: Unsound::Data::Maybe Abstract

Inherits:
Object
  • Object
show all
Includes:
AbstractType
Defined in:
lib/unsound/data/maybe.rb

Overview

This class is abstract.

Direct Known Subclasses

Just, Nothing

Class Method Summary collapse

Class Method Details

.of(value) ⇒ Data::Just

Wraps a raw value in a Just

Parameters:

  • value (Any)

    the value to wrap

Returns:



14
15
16
# File 'lib/unsound/data/maybe.rb', line 14

def self.of(value)
  Just.new(value)
end