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.



4
5
6
# File 'lib/arel/collectors/plain_string.rb', line 4

def initialize
  @str = ''
end

Instance Method Details

#<<(str) ⇒ Object



12
13
14
15
# File 'lib/arel/collectors/plain_string.rb', line 12

def << str
  @str << str
  self
end

#valueObject



8
9
10
# File 'lib/arel/collectors/plain_string.rb', line 8

def value
  @str
end