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.



69
70
71
# File 'lib/xdry/parsing/parts/var_types.rb', line 69

def initialize name
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



66
67
68
# File 'lib/xdry/parsing/parts/var_types.rb', line 66

def name
  @name
end

#type_hintObject

Returns the value of attribute type_hint.



67
68
69
# File 'lib/xdry/parsing/parts/var_types.rb', line 67

def type_hint
  @type_hint
end

Instance Method Details

#default_property_retainment_policyObject



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

def default_property_retainment_policy; 'retain'; end

#needs_space?Boolean

Returns:

  • (Boolean)


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

def needs_space?; false; end

#to_sObject



73
74
75
# File 'lib/xdry/parsing/parts/var_types.rb', line 73

def to_s
  "#{@name} *"
end