blob: 54e1e562c21a63d7637ee2b0c9f7fc3e3e941006 (
plain) (
tree)
|
|
# frozen_string_literal: true
require "arel/collectors/plain_string"
module Arel # :nodoc: all
module Collectors
class SQLString < PlainString
def initialize(*)
super
@bind_index = 1
end
def add_bind(bind)
self << yield(@bind_index)
@bind_index += 1
self
end
end
end
end
|