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.
54 55 56 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 54 def initialize name @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
52 53 54 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 52 def name @name end |
Instance Method Details
#default_property_retainment_policy ⇒ Object
62 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 62 def default_property_retainment_policy; ''; end |
#to_s ⇒ Object
58 59 60 |
# File 'lib/xdry/parsing/parts/var_types.rb', line 58 def to_s "#{@name}" end |