Class: XDry::PointerPointerVarType
- 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) ⇒ PointerPointerVarType
constructor
A new instance of PointerPointerVarType.
- #needs_space? ⇒ Boolean
- #to_s ⇒ Object
Methods inherited from VarType
Constructor Details
#initialize(name) ⇒ PointerPointerVarType
Returns a new instance of PointerPointerVarType.
86 87 88 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 86 def initialize name @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
83 84 85 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 83 def name @name end |
#type_hint ⇒ Object
Returns the value of attribute type_hint.
84 85 86 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 84 def type_hint @type_hint end |
Instance Method Details
#default_property_retainment_policy ⇒ Object
96 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 96 def default_property_retainment_policy; 'retain'; end |
#needs_space? ⇒ Boolean
94 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 94 def needs_space?; false; end |
#to_s ⇒ Object
90 91 92 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 90 def to_s "#{@name} **" end |