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-2.7.0/lib/rbs/ast/members.rb, line 158
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-2.7.0/lib/rbs/ast/members.rb, line 166
def ==(other)
  other.is_a?(self.class) && other.name == name && other.args == args
end
eql?(other) click to toggle source
# File rbs-2.7.0/lib/rbs/ast/members.rb, line 170
def eql?(other)
  self == other
end
hash() click to toggle source
# File rbs-2.7.0/lib/rbs/ast/members.rb, line 174
def hash
  name.hash ^ args.hash
end