class Right
Attributes
value[R]
Public Class Methods
[](value)
click to toggle source
# File lib/right.rb, line 4 def self.[] value new value end
new(value)
click to toggle source
# File lib/right.rb, line 8 def initialize(value) @value = value end
Public Instance Methods
left()
click to toggle source
# File lib/right.rb, line 12 def left None end
left?()
click to toggle source
# File lib/right.rb, line 20 def left? false end
right()
click to toggle source
# File lib/right.rb, line 16 def right Some[value] end
right?()
click to toggle source
# File lib/right.rb, line 24 def right? true end