Class: Protobuf::Generate::Ast::Message
- Inherits:
-
Struct
- Object
- Struct
- Protobuf::Generate::Ast::Message
- Defined in:
- lib/protobuf/generate/parser.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#name ⇒ Object
Returns the value of attribute name.
-
#package ⇒ Object
Returns the value of attribute package.
Instance Method Summary collapse
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields
57 58 59 |
# File 'lib/protobuf/generate/parser.rb', line 57 def fields @fields end |
#meta ⇒ Object
Returns the value of attribute meta
57 58 59 |
# File 'lib/protobuf/generate/parser.rb', line 57 def end |
#name ⇒ Object
Returns the value of attribute name
57 58 59 |
# File 'lib/protobuf/generate/parser.rb', line 57 def name @name end |
#package ⇒ Object
Returns the value of attribute package
57 58 59 |
# File 'lib/protobuf/generate/parser.rb', line 57 def package @package end |
Instance Method Details
#empty? ⇒ Boolean
59 |
# File 'lib/protobuf/generate/parser.rb', line 59 def empty?; fields.nil? or fields.empty? end |
#to_s ⇒ Object
58 |
# File 'lib/protobuf/generate/parser.rb', line 58 def to_s; name end |