Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoahero committed Oct 5, 2024
1 parent a81f210 commit 5a5d773
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/proto_plugin/file_descriptor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ def initialize(descriptor)
@descriptor = descriptor
end


# The messages defined as children of this file.
#
# @return [Array]
#
# @see https://github.com/protocolbuffers/protobuf/blob/v28.2/src/google/protobuf/descriptor.proto#L110
# Google::Protobuf::DescriptorProto#message_type
def messages
@messages ||= @descriptor.message_type.map do |m|
MessageDescriptor.new(m, self)
Expand Down

0 comments on commit 5a5d773

Please sign in to comment.