class RBS::Definition::Ancestor::Singleton
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/definition.rb, line 228 def initialize(name:) @name = name end
Public Instance Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/definition.rb, line 232 def ==(other) other.is_a?(Singleton) && other.name == name end
Also aliased as: eql?
Source
# File bundled-src/rbs-3.10.0/lib/rbs/definition.rb, line 238 def hash self.class.hash ^ name.hash end