Class: XDry::SimpleVarType

Inherits:
VarType
  • Object
show all
Defined in:
lib/xdry/parsing/parts/var_types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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_policyObject



46
# File 'lib/xdry/parsing/parts/var_types.rb', line 46

def default_property_retainment_policy; ''; end

#to_sObject



42
43
44
# File 'lib/xdry/parsing/parts/var_types.rb', line 42

def to_s
  "#{@name}"
end