lib/graphql/language/nodes.rb in graphql-1.9.17 vs lib/graphql/language/nodes.rb in graphql-1.9.18

- old
+ new

@@ -23,19 +23,19 @@ attr_reader :line, :col, :filename # Initialize a node by extracting its position, # then calling the class's `initialize_node` method. # @param options [Hash] Initial attributes for this node - def initialize(options={}) + def initialize(options = {}) if options.key?(:position_source) position_source = options.delete(:position_source) @line = position_source.line @col = position_source.col end @filename = options.delete(:filename) - initialize_node(options) + initialize_node(**options) end # Value equality # @return [Boolean] True if `self` is equivalent to `other` def eql?(other)