Sha256: b4e6563d17538adde2628221faa756327d427602fd664466d95db3e9ecbb0e71

Contents?: true

Size: 190 Bytes

Versions: 14

Compression:

Stored size: 190 Bytes

Contents

class SchemaSerializer
  module Serializable
    def serializer(klass = nil)
      (klass || "#{self.class.name}Serializer".safe_constantize || SchemaSerializer).new(self)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
schema_serializer-0.2.0 lib/schema_serializer/serializable.rb
schema_serializer-0.1.3 lib/schema_serializer/serializable.rb
schema_serializer-0.1.2 lib/schema_serializer/serializable.rb
schema_serializer-0.1.1 lib/schema_serializer/serializable.rb
schema_serializer-0.1.0 lib/schema_serializer/serializable.rb
schema_serializer-0.0.10 lib/schema_serializer/serializable.rb
schema_serializer-0.0.9 lib/schema_serializer/serializable.rb
schema_serializer-0.0.8 lib/schema_serializer/serializable.rb
schema_serializer-0.0.7 lib/schema_serializer/serializable.rb
schema_serializer-0.0.6 lib/schema_serializer/serializable.rb
schema_serializer-0.0.5 lib/schema_serializer/serializable.rb
schema_serializer-0.0.4 lib/schema_serializer/serializable.rb
schema_serializer-0.0.3 lib/schema_serializer/serializable.rb
schema_serializer-0.0.2 lib/schema_serializer/serializable.rb