class FMParser::ScalarNode
Attributes
label[R]
name[R]
type[R]
Public Class Methods
new(name:, type:, label:)
click to toggle source
@param [String | Symbol] name @param [String | Symbol] type represents the scalar type of protobuf @param [String | Symbol] label
# File lib/fmparser/node.rb, line 9 def initialize(name:, type:, label:) @name = name.to_sym @type = type.to_sym @label = label.to_sym end
Public Instance Methods
==(other)
click to toggle source
# File lib/fmparser/node.rb, line 17 def ==(other) self.class == other.class && self.name == other.name && self.type == other.type && self.label == other.label end