Sha256: 20569d900e6bf36dc707c2db5fdca85e6a48bcf3c7603b618aa59762b8b269dc

Contents?: true

Size: 540 Bytes

Versions: 2

Compression:

Stored size: 540 Bytes

Contents

=begin #nodoc#
If properties are allocated on class-level, they can be preinitialized using
this method.
This is disabled for now, because it does not seem nessesary
=end

def preallocate_class_properties o_class
  p= get_class_properties( o_class )['properties']
  unless p.nil? || p.blank?
    predefined_attributes = p.map do | property |
      [ property['name'] ,
      case property['type']
      when 'LINKMAP'
        Array.new
      when 'STRING'
        ''
      else
        nil
      end  ]
    end.to_h
  else
    {}
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active-orient-0.6 lib/rest_disabled.rb
active-orient-0.5 lib/rest_disabled.rb