Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_sol/extensions.rb

Overview

Add ArrayCollection override to arrays

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.is_array_collection?Boolean

:nodoc:

Returns:

  • (Boolean)


18
19
20
# File 'lib/ruby_sol/extensions.rb', line 18

def self.is_array_collection? #:nodoc:
  @is_array_collection
end

Instance Method Details

#is_array_collection=(a) ⇒ Object

Override RubySol::ClassMapper.use_array_collection setting for this array. Adds is_array_collection? method, which is used by the serializer over the global config if defined.



15
16
17
18
19
20
21
# File 'lib/ruby_sol/extensions.rb', line 15

def is_array_collection= a
  @is_array_collection = a

  def self.is_array_collection? #:nodoc:
    @is_array_collection
  end
end