Sha256: 94be2b3a90e8bc9c7c88c984d3651e35c9587d07a3a8b8e76ebb715cd81fb437
Contents?: true
Size: 357 Bytes
Versions: 18
Compression:
Stored size: 357 Bytes
Contents
require 'protobuf' # A couple of helper fields. # Might make sense to create a patch for Protobuf. # Protobuf::Field::BaseField.class_eval do unless respond_to?(:enum?) def enum? kind_of?(Protobuf::Field::EnumField) end end unless respond_to?(:message?) def message? kind_of?(Protobuf::Field::MessageField) end end end
Version data entries
18 entries across 18 versions & 1 rubygems