lib/arel/extensions/named_argument.rb in arel_toolkit-0.3.0 vs lib/arel/extensions/named_argument.rb in arel_toolkit-0.4.0

- old
+ new

@@ -1,17 +1,12 @@ # rubocop:disable Naming/MethodName # rubocop:disable Naming/UncommunicativeMethodParamName module Arel module Nodes - class NamedArgument < Arel::Nodes::Node - attr_reader :name - attr_reader :value - - def initialize(name, value) - @name = name - @value = value - end + class NamedArgument < Arel::Nodes::Binary + alias name left + alias value right end end module Visitors class ToSql