Sha256: ccbd8046265235a831037ddf806f5966dd8facbaed781907110deb6bb099d8cf

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

require_relative './enhance/node'
require_relative './enhance/path'
require_relative './enhance/path_node'
require_relative './enhance/query'
require_relative './enhance/query_methods'
require_relative './enhance/visitor'

module Arel
  module Enhance
  end

  def self.enhance(object, context_enhancers = Arel::Enhance::Visitor::DEFAULT_CONTEXT_ENHANCERS)
    return object if object.is_a?(Arel::Enhance::Node)

    Arel::Enhance::Visitor.new.accept(object, context_enhancers)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arel_toolkit-0.4.9 lib/arel/enhance.rb
arel_toolkit-0.4.8 lib/arel/enhance.rb
arel_toolkit-0.4.7 lib/arel/enhance.rb