class RBS::Definition::Ancestor::Singleton
Attributes
Public Class Methods
(name: TypeName) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/definition.rb, line 233 def initialize(name:) @name = name end
Public Instance Methods
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/definition.rb, line 237 def ==(other) other.is_a?(Singleton) && other.name == name end
Also aliased as: eql?
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/definition.rb, line 243 def hash self.class.hash ^ name.hash end