Class: Arel::Visitors::SQLServerNG::SQLStringProxy
- Inherits:
-
ActiveRecord::ConnectionAdapters::AbstractAdapter::SQLString
- Object
- ActiveRecord::ConnectionAdapters::AbstractAdapter::SQLString
- Arel::Visitors::SQLServerNG::SQLStringProxy
show all
- Defined in:
- lib/arel/visitors/sql_server/ng42.rb
Instance Method Summary
collapse
Constructor Details
#initialize(collector, block) ⇒ SQLStringProxy
Returns a new instance of SQLStringProxy.
271
|
# File 'lib/arel/visitors/sql_server/ng42.rb', line 271
def initialize(collector, block); @delegate = collector; @block = block end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
283
|
# File 'lib/arel/visitors/sql_server/ng42.rb', line 283
def method_missing(name, *args, &block); @delegate.send(name, args, &block) end
|
Instance Method Details
#<<(str) ⇒ Object
273
|
# File 'lib/arel/visitors/sql_server/ng42.rb', line 273
def << str; @delegate << str; self end
|
#add_bind(bind) ⇒ Object
275
|
# File 'lib/arel/visitors/sql_server/ng42.rb', line 275
def add_bind bind; @delegate.add_bind bind; self end
|
#compile(bvs, conn) ⇒ Object
277
278
279
|
# File 'lib/arel/visitors/sql_server/ng42.rb', line 277
def compile(bvs, conn)
_yield_str @delegate.compile(bvs, conn)
end
|