module MagicPipe::Codecs
Public Class Methods
lookup(type)
click to toggle source
# File lib/magic_pipe/codecs.rb, line 3 def self.lookup(type) case type when :json then Json when :thrift then Thrift when :msgpack, :message_pack then MessagePack when :yaml then Yaml when Class then type else raise ConfigurationError, "Unknown MagicPipe::Codecs type: '#{type}'." end end