Sha256: 0d6f2d833fce824d234998a2a5315282403595147b6483582e4203f1a25bd192
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
# Joc's monkeypatch for string bytesize (only available in 1.8.7+) unless 'amf'.respond_to?(:bytesize) class String #:nodoc: def bytesize self.size end end end # Add <tt>ArrayCollection</tt> override to arrays class Array # Override <tt>RocketAMF::CLASS_MAPPER.use_array_collection</tt> setting for # this array. Adds <tt>is_array_collection?</tt> method, which is used by the # serializer over the global config if defined. def is_array_collection=(value) @is_array_collection = value def self.is_array_collection? #:nodoc: @is_array_collection end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mrpin-rocketamf-2.0.1 | lib/rocketamf/extensions.rb |
mrpin-rocketamf-2.0.0 | lib/rocketamf/extensions.rb |