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.



54
55
56
# File 'lib/xdry/parsing/parts/var_types.rb', line 54

def initialize name
  @name = name
end

Instance Attribute Details

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



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

def default_property_retainment_policy; ''; end

#to_sObject



58
59
60
# File 'lib/xdry/parsing/parts/var_types.rb', line 58

def to_s
  "#{@name}"
end