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.



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

def initialize
  @str = ''.dup
end

Instance Method Details

#<<(str) ⇒ Object



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

def << str
  @str << str
  self
end

#valueObject



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

def value
  @str
end