class RBS::AST::Declarations::AliasDecl
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/ast/declarations.rb, line 426 def initialize(new_name:, old_name:, location:, comment:, annotations: []) @new_name = new_name @old_name = old_name @location = location @comment = comment @annotations = annotations end
Public Instance Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/ast/declarations.rb, line 434 def ==(other) other.is_a?(self.class) && other.new_name == new_name && other.old_name == old_name end
Also aliased as: eql?
Source
# File bundled-src/rbs-3.10.0/lib/rbs/ast/declarations.rb, line 442 def hash self.class.hash ^ new_name.hash ^ old_name.hash end