Class: Astrapi::Attr
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ Attr
constructor
A new instance of Attr.
Methods inherited from Ast
Constructor Details
#initialize(name, type) ⇒ Attr
Returns a new instance of Attr.
26 27 28 |
# File 'lib/ast.rb', line 26 def initialize name,type @name,@type=name,type end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/ast.rb', line 25 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
25 26 27 |
# File 'lib/ast.rb', line 25 def type @type end |