Class: Arel::Collectors::PlainString

Inherits:
Object
  • Object
show all
Defined in:
activerecord/lib/arel/collectors/plain_string.rb

Direct Known Subclasses

SQLString

Instance Method Summary collapse

Constructor Details

#initializePlainString


6
7
8
# File 'activerecord/lib/arel/collectors/plain_string.rb', line 6

def initialize
  @str = +""
end

Instance Method Details

#<<(str) ⇒ Object


14
15
16
17
# File 'activerecord/lib/arel/collectors/plain_string.rb', line 14

def <<(str)
  @str << str
  self
end

#valueObject


10
11
12
# File 'activerecord/lib/arel/collectors/plain_string.rb', line 10

def value
  @str
end