Method: PropertyType#parameter_type

Defined in:
lib/metarecord/properties.rb

#parameter_type(options = {}) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/metarecord/properties.rb', line 10

def parameter_type options = {}
  if (pass_by_const_reference? && options[:ref].nil?) || options[:ref]
    "const #{@name}&"
  else
    @name
  end
end