Class: XDry::PointerVarType

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

Returns a new instance of PointerVarType.



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

def initialize name
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



50
51
52
# File 'lib/xdry/parsing/parts/var_types.rb', line 50

def name
  @name
end

#type_hintObject

Returns the value of attribute type_hint.



51
52
53
# File 'lib/xdry/parsing/parts/var_types.rb', line 51

def type_hint
  @type_hint
end

Instance Method Details

#default_property_retainment_policyObject



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

def default_property_retainment_policy; 'retain'; end

#needs_space?Boolean

Returns:

  • (Boolean)


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

def needs_space?; false; end

#to_sObject



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

def to_s
  "#{@name} *"
end