Class: XDry::PointerVarType
- Defined in:
- lib/xdry/parsing/parts/var_types.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type_hint ⇒ Object
Returns the value of attribute type_hint.
Instance Method Summary collapse
- #default_property_retainment_policy ⇒ Object
-
#initialize(name) ⇒ PointerVarType
constructor
A new instance of PointerVarType.
- #needs_space? ⇒ Boolean
- #to_s ⇒ Object
Methods inherited from VarType
Constructor Details
#initialize(name) ⇒ PointerVarType
Returns a new instance of PointerVarType.
69 70 71 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 69 def initialize name @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
66 67 68 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 66 def name @name end |
#type_hint ⇒ Object
Returns the value of attribute type_hint.
67 68 69 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 67 def type_hint @type_hint end |
Instance Method Details
#default_property_retainment_policy ⇒ Object
79 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 79 def default_property_retainment_policy; 'retain'; end |
#needs_space? ⇒ Boolean
77 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 77 def needs_space?; false; end |
#to_s ⇒ Object
73 74 75 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 73 def to_s "#{@name} *" end |