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.
75 76 77 |
# File 'lib/crokus/ast.rb', line 75 def initialize t @type=t end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
74 75 76 |
# File 'lib/crokus/ast.rb', line 74 def type @type end |
Instance Method Details
#name ⇒ Object
79 80 81 |
# File 'lib/crokus/ast.rb', line 79 def name "#{type.name} *" end |