Class: Crokus::PointerTo
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Type
Instance Method Summary collapse
-
#initialize(t) ⇒ PointerTo
constructor
A new instance of PointerTo.
- #name ⇒ Object
Methods inherited from Ast
Constructor Details
#initialize(t) ⇒ PointerTo
Returns a new instance of PointerTo.
79 80 81 |
# File 'lib/crokus/ast.rb', line 79 def initialize t @type=t end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
78 79 80 |
# File 'lib/crokus/ast.rb', line 78 def type @type end |
Instance Method Details
#name ⇒ Object
83 84 85 |
# File 'lib/crokus/ast.rb', line 83 def name "#{type.name} *" end |