Class: XDry::SimpleVarType
- Defined in:
- lib/xdry/parsing/parts/var_types.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #default_property_retainment_policy ⇒ Object
-
#initialize(name) ⇒ SimpleVarType
constructor
A new instance of SimpleVarType.
- #to_s ⇒ Object
Methods inherited from VarType
#needs_space?, parse, #to_source_with_space
Constructor Details
#initialize(name) ⇒ SimpleVarType
Returns a new instance of SimpleVarType.
38 39 40 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 38 def initialize name @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
36 37 38 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 36 def name @name end |
Instance Method Details
#default_property_retainment_policy ⇒ Object
46 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 46 def default_property_retainment_policy; ''; end |
#to_s ⇒ Object
42 43 44 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 42 def to_s "#{@name}" end |