Class: Literal::Left
Instance Attribute Summary
Attributes inherited from Either
#type, #value
Instance Method Summary
collapse
Methods inherited from Either
#initialize
Methods included from Modifiers
extended
Instance Method Details
#inspect ⇒ String
17
|
# File 'lib/literal/left.rb', line 17
def inspect = "Literal::Left(#{@value.inspect})"
|
11
|
# File 'lib/literal/left.rb', line 11
def left = Literal::Some.new(@value)
|
#left? ⇒ true
5
|
# File 'lib/literal/left.rb', line 5
def left? = true
|
#right? ⇒ false
8
|
# File 'lib/literal/left.rb', line 8
def right? = false
|