Class: XDry::PointerPointerVarType

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) ⇒ PointerPointerVarType

Returns a new instance of PointerPointerVarType.



86
87
88
# File 'lib/xdry/parsing/parts/var_types.rb', line 86

def initialize name
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



83
84
85
# File 'lib/xdry/parsing/parts/var_types.rb', line 83

def name
  @name
end

#type_hintObject

Returns the value of attribute type_hint.



84
85
86
# File 'lib/xdry/parsing/parts/var_types.rb', line 84

def type_hint
  @type_hint
end

Instance Method Details

#default_property_retainment_policyObject



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

def default_property_retainment_policy; 'retain'; end

#needs_space?Boolean

Returns:

  • (Boolean)


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

def needs_space?; false; end

#to_sObject



90
91
92
# File 'lib/xdry/parsing/parts/var_types.rb', line 90

def to_s
  "#{@name} **"
end