module RBS::AST::Members::Var
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/ast/members.rb, line 127 def initialize(name:, type:, location:, comment:) @name = name @type = type @location = location @comment = comment end
Public Instance Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/ast/members.rb, line 134 def ==(other) other.is_a?(self.class) && other.name == name && other.type == type end
Also aliased as: eql?
Source
# File bundled-src/rbs-3.10.0/lib/rbs/ast/members.rb, line 140 def hash name.hash ^ type.hash end