Method: RBS::AST::Members::MethodDefinition#update

Defined in:
lib/rbs/ast/members.rb

#update(name: self.name, kind: self.kind, types: self.types, annotations: self.annotations, location: self.location, comment: self.comment, overload: self.overload) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
# File 'lib/rbs/ast/members.rb', line 52

def update(name: self.name, kind: self.kind, types: self.types, annotations: self.annotations, location: self.location, comment: self.comment, overload: self.overload)
  self.class.new(
    name: name,
    kind: kind,
    types: types,
    annotations: annotations,
    location: location,
    comment: comment,
    overload: overload
  )
end