lib/openapi3_parser/node/array.rb in openapi3_parser-0.6.1 vs lib/openapi3_parser/node/array.rb in openapi3_parser-0.7.0

- old
+ new

@@ -33,9 +33,17 @@ # @return [Object] def each(&block) Placeholder.each(node_data, &block) end + # @param [Any] other + # + # @return [Boolean] + def ==(other) + other.instance_of?(self.class) && + node_context.same_data_and_source?(other.node_context) + end + # Used to access a node relative to this node # @param [Source::Pointer, ::Array, ::String] pointer_like # @return anything def node_at(pointer_like) current_pointer = node_context.document_location.pointer