Class: Mobility::Plugins::Arel::Visitor
- Inherits:
-
Arel::Visitors::Visitor
- Object
- Arel::Visitors::Visitor
- Mobility::Plugins::Arel::Visitor
- Defined in:
- lib/mobility/plugins/arel.rb
Direct Known Subclasses
Backends::ActiveRecord::KeyValue::Visitor, Backends::ActiveRecord::Table::Visitor
Constant Summary collapse
- INNER_JOIN =
::Arel::Nodes::InnerJoin
- OUTER_JOIN =
::Arel::Nodes::OuterJoin
Instance Attribute Summary collapse
-
#backend_class ⇒ Object
readonly
Returns the value of attribute backend_class.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(backend_class, locale) ⇒ Visitor
constructor
A new instance of Visitor.
Constructor Details
#initialize(backend_class, locale) ⇒ Visitor
Returns a new instance of Visitor.
62 63 64 65 |
# File 'lib/mobility/plugins/arel.rb', line 62 def initialize(backend_class, locale) super() @backend_class, @locale = backend_class, locale end |
Instance Attribute Details
#backend_class ⇒ Object (readonly)
Returns the value of attribute backend_class.
60 61 62 |
# File 'lib/mobility/plugins/arel.rb', line 60 def backend_class @backend_class end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
60 61 62 |
# File 'lib/mobility/plugins/arel.rb', line 60 def locale @locale end |