Sha256: 6837893fb43e8f4a97c3d0c849880f31ec481c7f1bd72ab0bc40309a5dc22cc8

Contents?: true

Size: 217 Bytes

Versions: 4

Compression:

Stored size: 217 Bytes

Contents

module Moleculer
  module Serializers

    def self.for(serializer)
      require_relative("serializers/#{serializer}")
      Serializers.const_get(serializer.to_s.split("_").map(&:capitalize).join)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moleculer-0.3.0 lib/moleculer/serializers.rb
moleculer-0.2.0 lib/moleculer/serializers.rb
moleculer-0.1.1 lib/moleculer/serializers.rb
moleculer-0.1.0 lib/moleculer/serializers.rb