Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/rocketamf/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/rocketamf/extensions.rb', line 18

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

Instance Method Details

#is_array_collection=(value) ⇒ Object

Override RocketAMF::CLASS_MAPPER.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/rocketamf/extensions.rb', line 15

def is_array_collection=(value)
  @is_array_collection = value

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