模块 RBS::AST::Members::Var
属性
comment[R]
location[R]
name[R]
type[R]
公共类方法
new(name:, type:, location:, comment:) 点击切换源代码
# File rbs-3.8.0/lib/rbs/ast/members.rb, line 125 def initialize(name:, type:, location:, comment:) @name = name @type = type @location = location @comment = comment end
公共实例方法
==(other) 点击切换源代码
# File rbs-3.8.0/lib/rbs/ast/members.rb, line 132 def ==(other) other.is_a?(self.class) && other.name == name && other.type == type end
也别名为: eql?
hash() 点击切换源代码
# File rbs-3.8.0/lib/rbs/ast/members.rb, line 138 def hash name.hash ^ type.hash end