module Protobuf::Message::Fields

Public Class Methods

extended(other) click to toggle source
# File lib/protobuf/message/fields.rb, line 5
def self.extended(other)
  other.extend(ClassMethods)
  ::Protobuf.deprecator.define_deprecated_methods(
    other.singleton_class,
    :get_ext_field_by_name => :get_extension_field,
    :get_ext_field_by_tag => :get_extension_field,
    :get_field_by_name => :get_field,
    :get_field_by_tag => :get_field,
  )

  def inherited(subclass)
    inherit_fields!(subclass)
  end
end

Public Instance Methods

inherited(subclass) click to toggle source
# File lib/protobuf/message/fields.rb, line 15
def inherited(subclass)
  inherit_fields!(subclass)
end