module ArProtobufStore
Constants
- VERSION
ar_protobuf_store version
Public Class Methods
find_parser!(pb_class, options={})
click to toggle source
# File lib/ar_protobuf_store.rb, line 15 def self.find_parser!(pb_class, options={}) if defined?(ProtocolBuffers) && ::ProtocolBuffers::Message > pb_class return ArProtobufStore::CodekitchenProtobufParser.new(pb_class, options) elsif defined?(Protobuf) && ::Protobuf::Message > pb_class return ArProtobufStore::ProtobufParser.new(pb_class, options) else raise "Could not identify protocol buffer library for #{pb_class}" end end
included(base)
click to toggle source
# File lib/ar_protobuf_store.rb, line 11 def self.included(base) base.extend(ClassMethods) end