Class: Literal::Right
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/right.rb', line 17
def inspect = "Literal::Right(#{@value.inspect})"
|
#left? ⇒ false
5
|
# File 'lib/literal/right.rb', line 5
def left? = false
|
14
|
# File 'lib/literal/right.rb', line 14
def right = Literal::Some.new(@value)
|
#right? ⇒ true
8
|
# File 'lib/literal/right.rb', line 8
def right? = true
|