Class: Protobuf::Generate::Ast::MessageField
- Inherits:
-
Struct
- Object
- Struct
- Protobuf::Generate::Ast::MessageField
- Defined in:
- lib/protobuf/generate/parser.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
61 62 63 |
# File 'lib/protobuf/generate/parser.rb', line 61 def label @label end |
#meta ⇒ Object
Returns the value of attribute meta
61 62 63 |
# File 'lib/protobuf/generate/parser.rb', line 61 def end |
#name ⇒ Object
Returns the value of attribute name
61 62 63 |
# File 'lib/protobuf/generate/parser.rb', line 61 def name @name end |
#options ⇒ Object
Returns the value of attribute options
61 62 63 |
# File 'lib/protobuf/generate/parser.rb', line 61 def end |
#tag ⇒ Object
Returns the value of attribute tag
61 62 63 |
# File 'lib/protobuf/generate/parser.rb', line 61 def tag @tag end |
#type ⇒ Object
Returns the value of attribute type
61 62 63 |
# File 'lib/protobuf/generate/parser.rb', line 61 def type @type end |
Instance Method Details
#optional? ⇒ Boolean
63 |
# File 'lib/protobuf/generate/parser.rb', line 63 def optional?; !required? end |
#required? ⇒ Boolean
62 |
# File 'lib/protobuf/generate/parser.rb', line 62 def required?; !!label.match(/required/) end |