module RBS::AST::Members::Var
Attributes
comment[R]
location[R]
name[R]
type[R]
Public Class Methods
new(name:, type:, location:, comment:)
click to toggle source
# File rbs-3.4.4/lib/rbs/ast/members.rb, line 125 def initialize(name:, type:, location:, comment:) @name = name @type = type @location = location @comment = comment end
Public Instance Methods
==(other)
click to toggle source
# File rbs-3.4.4/lib/rbs/ast/members.rb, line 132 def ==(other) other.is_a?(self.class) && other.name == name && other.type == type end
Also aliased as: eql?
hash()
click to toggle source
# File rbs-3.4.4/lib/rbs/ast/members.rb, line 138 def hash name.hash ^ type.hash end