Class: Arel::Collectors::PlainString

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

Direct Known Subclasses

SQLString

Instance Method Summary collapse

Constructor Details

#initializePlainString

Returns a new instance of PlainString.



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

def initialize
  @str = +""
end

Instance Method Details

#<<(str) ⇒ Object



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

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

#valueObject



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

def value
  @str
end