Class: RubyRTL::Assign

Inherits:
Statement show all
Defined in:
lib/ruby_rtl/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(lhs, rhs) ⇒ Assign

Returns a new instance of Assign.



112
113
114
# File 'lib/ruby_rtl/ast.rb', line 112

def initialize lhs,rhs
  @lhs,@rhs=lhs,rhs
end

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



111
112
113
# File 'lib/ruby_rtl/ast.rb', line 111

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs.



111
112
113
# File 'lib/ruby_rtl/ast.rb', line 111

def rhs
  @rhs
end