module RBS::AST::Members::Mixin

Attributes

annotations[R]
args[R]
comment[R]
location[R]
name[R]

Public Class Methods

new(name:, args:, annotations:, location:, comment:) click to toggle source
# File rbs-3.2.1/lib/rbs/ast/members.rb, line 192
def initialize(name:, args:, annotations:, location:, comment:)
  @name = name
  @args = args
  @annotations = annotations
  @location = location
  @comment = comment
end

Public Instance Methods

==(other) click to toggle source
# File rbs-3.2.1/lib/rbs/ast/members.rb, line 200
def ==(other)
  other.is_a?(self.class) && other.name == name && other.args == args
end
eql?(other) click to toggle source
# File rbs-3.2.1/lib/rbs/ast/members.rb, line 204
def eql?(other)
  self == other
end
hash() click to toggle source
# File rbs-3.2.1/lib/rbs/ast/members.rb, line 208
def hash
  name.hash ^ args.hash
end