Class: ParamsReady::Marshaller::PolymorphMarshallers

Inherits:
Object
  • Object
show all
Defined in:
lib/params_ready/marshaller/polymorph_marshallers.rb

Defined Under Namespace

Classes: StructMarshaller

Class Method Summary collapse

Class Method Details

.collectionObject



57
58
59
60
61
62
63
64
# File 'lib/params_ready/marshaller/polymorph_marshallers.rb', line 57

def self.collection
  @collection ||= begin
    c = ClassCollection.new Hash
    c.add_factory :hash, StructMarshaller
    c.freeze
    c
  end
end