# File rbs-2.1.0/lib/rbs/ast/members.rb, line 225 def initialize(name,, type,, ivar_name,, kind,, annotations,, location,, comment)) @name = name @type = type @ivar_name = ivar_name @annotations = annotations @location = location @comment = comment @kind = kind end
# File rbs-2.1.0/lib/rbs/ast/members.rb, line 235 def ==(other) other.is_a?(self.class) && other.name == name && other.type == type && other.ivar_name == ivar_name && other.kind == kind end
# File rbs-2.1.0/lib/rbs/ast/members.rb, line 245 def hash self.class.hash ^ name.hash ^ type.hash ^ ivar_name.hash ^ kind.hash end
# File rbs-2.1.0/lib/rbs/ast/members.rb, line 249 def update(name: self.name, type: self.type, ivar_name: self.ivar_name, kind: self.kind, annotations: self.annotations, location: self.location, comment: self.comment) klass = _ = self.class klass.new( name: name, type: type, ivar_name: ivar_name, kind: kind, annotations: annotations, location: location, comment: comment ) end