Class: Reg::Transform

Inherits:
Object
  • Object
show all
Defined in:
lib/redparse/reg_more_sugar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left, right) ⇒ Transform

Returns a new instance of Transform.



36
37
38
# File 'lib/redparse/reg_more_sugar.rb', line 36

def initialize(left,right)
  @left,@right=left,right
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



39
40
41
# File 'lib/redparse/reg_more_sugar.rb', line 39

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



39
40
41
# File 'lib/redparse/reg_more_sugar.rb', line 39

def right
  @right
end