In Files

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

Parent

Methods

Class/Module Index [+]

Quicksearch

RBS::Definition::Ancestor::Singleton

Attributes

name[R]

Public Class Methods

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

Public Instance Methods

==(other) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/definition.rb, line 205
def ==(other)
  other.is_a?(Singleton) && other.name == name
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/definition.rb, line 211
def hash
  self.class.hash ^ name.hash
end
            
There is an updated format of the API docs for this version here.