class RBS::AST::Members::MethodDefinition::Overload
def ==(other)
def ==(other) other.is_a?(Overload) && other.method_type == method_type && other.annotations == annotations end
def hash
def hash method_type.hash ^ annotations.hash end
def initialize(method_type:, annotations:)
def initialize(method_type:, annotations:) @method_type = method_type @annotations = annotations end
def sub(subst)
def sub(subst) return self if subst.empty? update(method_type: self.method_type.sub(subst)) end
def to_json(state = _ = nil)
def to_json(state = _ = nil) { annotations: annotations, method_type: method_type }.to_json(state) end
def update(annotations: self.annotations, method_type: self.method_type)
def update(annotations: self.annotations, method_type: self.method_type) Overload.new(annotations: annotations, method_type: method_type) end