Class: ByteArray

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

Instance Method Summary collapse

Methods inherited from PropertyType

#name, #parameter_type, #pass_by_const_reference?

Constructor Details

#initialize(parent) ⇒ ByteArray

Returns a new instance of ByteArray.



58
59
60
61
62
63
64
65
# File 'lib/metarecord/properties.rb', line 58

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



67
68
69
# File 'lib/metarecord/properties.rb', line 67

def default_name
  "std::string"
end