Class: RubyRTL::State
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Ast
Instance Method Summary collapse
-
#initialize(name, body = nil) ⇒ State
constructor
A new instance of State.
Methods inherited from Ast
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
#body ⇒ Object
Returns the value of attribute body.
156 157 158 |
# File 'lib/ruby_rtl/ast.rb', line 156 def body @body end |
#name ⇒ Object
Returns the value of attribute name.
156 157 158 |
# File 'lib/ruby_rtl/ast.rb', line 156 def name @name end |