Class: AMF::Pure::SerializerCache

Inherits:
Object
  • Object
show all
Defined in:
lib/amf/pure/serializer.rb

Overview

:nodoc:all:

Defined Under Namespace

Classes: ObjectCache, StringCache

Class Method Summary collapse

Class Method Details

.new(type) ⇒ Object



195
196
197
198
199
200
201
# File 'lib/amf/pure/serializer.rb', line 195

def self.new(type)
  if type == :string
    StringCache.new
  elsif type == :object
    ObjectCache.new
  end
end