Class: RubyRTL::State

Inherits:
Ast
  • Object
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(name, body = nil) ⇒ State

Returns a new instance of State.



157
158
159
# File 'lib/ruby_rtl/ast.rb', line 157

def initialize name,body=nil
  @name,@body=name,body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



156
157
158
# File 'lib/ruby_rtl/ast.rb', line 156

def body
  @body
end

#nameObject

Returns the value of attribute name.



156
157
158
# File 'lib/ruby_rtl/ast.rb', line 156

def name
  @name
end