lib/rbs/ast/members.rb in rbs-0.10.0 vs lib/rbs/ast/members.rb in rbs-0.11.0

- old
+ new

@@ -9,37 +9,34 @@ attr_reader :kind attr_reader :types attr_reader :annotations attr_reader :location attr_reader :comment - attr_reader :attributes attr_reader :overload - def initialize(name:, kind:, types:, annotations:, location:, comment:, attributes:, overload:) + def initialize(name:, kind:, types:, annotations:, location:, comment:, overload:) @name = name @kind = kind @types = types @annotations = annotations @location = location @comment = comment - @attributes = attributes @overload = overload end def ==(other) other.is_a?(MethodDefinition) && other.name == name && other.kind == kind && other.types == types && - other.attributes == attributes && other.overload == overload end alias eql? == def hash - self.class.hash ^ name.hash ^ kind.hash ^ types.hash ^ attributes.hash ^ overload.hash + self.class.hash ^ name.hash ^ kind.hash ^ types.hash ^ overload.hash end def instance? kind == :instance || kind == :singleton_instance end @@ -50,19 +47,18 @@ def overload? overload end - def update(name: self.name, kind: self.kind, types: self.types, annotations: self.annotations, location: self.location, comment: self.comment, attributes: self.attributes, overload: self.overload) + 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, - attributes: attributes, overload: overload ) end def to_json(*a) @@ -71,10 +67,9 @@ kind: kind, types: types, annotations: annotations, location: location, comment: comment, - attributes: attributes, overload: overload }.to_json(*a) end end