Class: XDry::UnknownVarType

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

parse, #to_source_with_space

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

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

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_policyObject



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

def default_property_retainment_policy; 'retain'; end

#needs_space?Boolean

Returns:

  • (Boolean)


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

def needs_space?; true; end

#to_sObject



107
108
109
# File 'lib/xdry/parsing/parts/var_types.rb', line 107

def to_s
  @name
end