Class: Astrapi::Type
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name) ⇒ Type
constructor
A new instance of Type.
Methods inherited from Ast
Constructor Details
#initialize(name) ⇒ Type
Returns a new instance of Type.
33 34 35 |
# File 'lib/ast.rb', line 33 def initialize name @name=name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
32 33 34 |
# File 'lib/ast.rb', line 32 def name @name end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 |
# File 'lib/ast.rb', line 37 def ==(other) name==other.name end |