Class: Mobility::Arel::Visitor

Inherits:
Arel::Visitors::Visitor
  • Object
show all
Defined in:
lib/mobility/arel/visitor.rb

Constant Summary collapse

INNER_JOIN =
::Arel::Nodes::InnerJoin
OUTER_JOIN =
::Arel::Nodes::OuterJoin

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backend_class, locale) ⇒ Visitor

Returns a new instance of Visitor.


10
11
12
13
# File 'lib/mobility/arel/visitor.rb', line 10

def initialize(backend_class, locale)
  super()
  @backend_class, @locale = backend_class, locale
end

Instance Attribute Details

#backend_classObject (readonly)

Returns the value of attribute backend_class


8
9
10
# File 'lib/mobility/arel/visitor.rb', line 8

def backend_class
  @backend_class
end

#localeObject (readonly)

Returns the value of attribute locale


8
9
10
# File 'lib/mobility/arel/visitor.rb', line 8

def locale
  @locale
end