Class: Protobuf::Generate::Ast::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/protobuf/generate/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



57
58
59
# File 'lib/protobuf/generate/parser.rb', line 57

def fields
  @fields
end

#metaObject

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



57
58
59
# File 'lib/protobuf/generate/parser.rb', line 57

def meta
  @meta
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



57
58
59
# File 'lib/protobuf/generate/parser.rb', line 57

def name
  @name
end

#packageObject

Returns the value of attribute package

Returns:

  • (Object)

    the current value of package



57
58
59
# File 'lib/protobuf/generate/parser.rb', line 57

def package
  @package
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


59
# File 'lib/protobuf/generate/parser.rb', line 59

def empty?; fields.nil? or fields.empty? end

#to_sObject



58
# File 'lib/protobuf/generate/parser.rb', line 58

def to_s; name end