class FMParser::EnumNode

Attributes

label[R]
name[R]
type[R]

Public Class Methods

new(name:, type:, label:) click to toggle source

@param [String | Symbol] name @param [Module] type represents the enum type of protobuf @param [String | Symbol] label

# File lib/fmparser/node.rb, line 29
def initialize(name:, type:, label:)
  @name  = name.to_sym
  @type  = type
  @label = label.to_sym
end

Public Instance Methods

==(other) click to toggle source
# File lib/fmparser/node.rb, line 37
def ==(other)
  self.class == other.class &&
    self.name == other.name &&
    self.type == other.type &&
    self.label == other.label
end