Class: Unsound::Data::Either Abstract

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

Overview

This class is abstract.

Direct Known Subclasses

Left, Right

Class Method Summary collapse

Class Method Details

.of(value) ⇒ Data::Right

Wraps a raw value in a Right

Parameters:

  • value (Any)

    the value to wrap

Returns:



15
16
17
# File 'lib/unsound/data/either.rb', line 15

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