Module: Protobug::Compiler::Descriptor::ClassMethods

Defined in:
lib/protobug/compiler.rb

Instance Method Summary collapse

Instance Method Details

#descriptor_classObject



144
145
146
# File 'lib/protobug/compiler.rb', line 144

def descriptor_class
  Google::Protobuf.const_get(name.split("::").last)
end

#fields_by_nameObject



149
# File 'lib/protobug/compiler.rb', line 149

def fields_by_name = descriptor_class.fields_by_name

#fields_by_numberObject



148
# File 'lib/protobug/compiler.rb', line 148

def fields_by_number = descriptor_class.fields_by_number