Sha256: dc2705017b3e77551167a0f9ef82555d136724c1c8b6bac6c0731708cb06dfd9

Contents?: true

Size: 525 Bytes

Versions: 10

Compression:

Stored size: 525 Bytes

Contents

# rubocop:disable Naming/MethodName
# rubocop:disable Naming/UncommunicativeMethodParamName

module Arel
  module Nodes
    class NamedArgument < Arel::Nodes::Binary
      alias name left
      alias value right
    end
  end

  module Visitors
    class ToSql
      def visit_Arel_Nodes_NamedArgument(o, collector)
        collector << o.name
        collector << ' => '
        visit(o.value, collector)
      end
    end
  end
end

# rubocop:enable Naming/MethodName
# rubocop:enable Naming/UncommunicativeMethodParamName

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arel_toolkit-0.4.9 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.8 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.7 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.6 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.5 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.4 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.3 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.2 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.1 lib/arel/extensions/named_argument.rb
arel_toolkit-0.4.0 lib/arel/extensions/named_argument.rb