In Files

  • rbs-2.1.0/lib/rbs/constant.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

RBS::Constant

Attributes

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

Public Class Methods

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

Public Instance Methods

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