Class: Astrapi::Klass
Instance Attribute Summary collapse
-
#attrs ⇒ Object
Returns the value of attribute attrs.
-
#inheritance ⇒ Object
Returns the value of attribute inheritance.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, inheritance = nil, attrs = []) ⇒ Klass
constructor
A new instance of Klass.
Methods inherited from Ast
Constructor Details
#initialize(name, inheritance = nil, attrs = []) ⇒ Klass
Returns a new instance of Klass.
19 20 21 |
# File 'lib/ast.rb', line 19 def initialize name,inheritance=nil,attrs=[] @name,@inheritance,@attrs=name,inheritance,attrs end |
Instance Attribute Details
#attrs ⇒ Object
Returns the value of attribute attrs.
18 19 20 |
# File 'lib/ast.rb', line 18 def attrs @attrs end |
#inheritance ⇒ Object
Returns the value of attribute inheritance.
18 19 20 |
# File 'lib/ast.rb', line 18 def inheritance @inheritance end |
#name ⇒ Object
Returns the value of attribute name.
18 19 20 |
# File 'lib/ast.rb', line 18 def name @name end |