Class: XDry::UnknownVarType
- 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) ⇒ UnknownVarType
constructor
A new instance of UnknownVarType.
- #needs_space? ⇒ Boolean
- #to_s ⇒ Object
Methods inherited from VarType
Constructor Details
#initialize(name) ⇒ UnknownVarType
Returns a new instance of UnknownVarType.
103 104 105 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 103 def initialize name @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
100 101 102 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 100 def name @name end |
#type_hint ⇒ Object
Returns the value of attribute type_hint.
101 102 103 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 101 def type_hint @type_hint end |
Instance Method Details
#default_property_retainment_policy ⇒ Object
113 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 113 def default_property_retainment_policy; 'retain'; end |
#needs_space? ⇒ Boolean
111 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 111 def needs_space?; true; end |
#to_s ⇒ Object
107 108 109 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 107 def to_s @name end |