Sha256: 6db7f8687dc10b2530c95d97098359b5062079210b2e82beb314f14472f37633
Contents?: true
Size: 726 Bytes
Versions: 2
Compression:
Stored size: 726 Bytes
Contents
require 'ivy/serializers/registry' module Ivy module Serializers class Serializer class << self attr_accessor :_registry def inherited(base) base._registry = Registry.new end def links(generator, resource) _registry.links(generator, resource) end def map(klass, &block) _registry.map(klass, &block) end def resource(generator, resource) _registry.resource(generator, resource) end end def links(generator, links) self.class.links(generator, links) end def resource(generator, resource) self.class.resource(generator, resource) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ivy-serializers-0.2.0 | lib/ivy/serializers/serializer.rb |
ivy-serializers-0.1.0 | lib/ivy/serializers/serializer.rb |