class RBS::AST::Declarations::AliasDecl
属性
comment[R]
location[R]
new_name[R]
old_name[R]
公共类方法
new(new_name:, old_name:, location:, comment:) 点击以切换源代码
# File rbs-3.8.0/lib/rbs/ast/declarations.rb, line 422 def initialize(new_name:, old_name:, location:, comment:) @new_name = new_name @old_name = old_name @location = location @comment = comment end
公共实例方法
==(other) 点击以切换源代码
# File rbs-3.8.0/lib/rbs/ast/declarations.rb, line 429 def ==(other) other.is_a?(self.class) && other.new_name == new_name && other.old_name == old_name end
也别名为: eql?
hash() 点击以切换源代码
# File rbs-3.8.0/lib/rbs/ast/declarations.rb, line 437 def hash self.class.hash ^ new_name.hash ^ old_name.hash end