Sha256: 579c5a6fbb23593b69f44d1e8aebfec2f2fd4b7da2ca156955604e5bb25c245a

Contents?: true

Size: 412 Bytes

Versions: 10

Compression:

Stored size: 412 Bytes

Contents

module Arel
  module Enhance
    class PathNode
      attr_reader :method
      attr_reader :value

      def initialize(method, value)
        @method = method
        @value = value
      end

      def arguments?
        method.is_a?(Array)
      end

      def inspect
        case value
        when String
          "'#{value}'"
        else
          value.inspect
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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