class RBS::Constant

Attributes

entry[R]
name[R]
type[R]

Public Class Methods

new(name:, type:, entry:) click to toggle source
# File rbs-3.7.0/lib/rbs/constant.rb, line 9
def initialize(name:, type:, entry:)
  @name = name
  @type = type
  @entry = entry
end

Public Instance Methods

==(other) click to toggle source
# File rbs-3.7.0/lib/rbs/constant.rb, line 15
def ==(other)
  other.is_a?(Constant) &&
    other.name == name &&
    other.type == type &&
    other.entry == entry
end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source
# File rbs-3.7.0/lib/rbs/constant.rb, line 24
def hash
  self.class.hash ^ name.hash ^ type.hash ^ entry.hash
end