Class: Boolean

Inherits:
PropertyType show all
Defined in:
lib/metarecord/properties.rb

Instance Method Summary collapse

Methods inherited from PropertyType

#name, #parameter_type

Constructor Details

#initialize(parent) ⇒ Boolean

Returns a new instance of Boolean.



39
40
41
42
43
44
45
46
# File 'lib/metarecord/properties.rb', line 39

def initialize parent
  super(if parent.methods.include?(:nativeTypeNameFor)
    name = parent.nativeTypeNameFor ByteArray
    if name == ByteArray then default_name else name end
  else
    default_name
  end)
end

Instance Method Details

#default_nameObject



48
49
50
# File 'lib/metarecord/properties.rb', line 48

def default_name
  "bool"
end

#pass_by_const_reference?Boolean

Returns:



52
53
54
# File 'lib/metarecord/properties.rb', line 52

def pass_by_const_reference?
  false
end