Class: Arel::Collectors::PlainString
- Inherits:
-
Object
- Object
- Arel::Collectors::PlainString
- Defined in:
- lib/arel/collectors/plain_string.rb
Direct Known Subclasses
Instance Method Summary collapse
- #<<(str) ⇒ Object
-
#initialize ⇒ PlainString
constructor
A new instance of PlainString.
- #value ⇒ Object
Constructor Details
#initialize ⇒ PlainString
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 |
#value ⇒ Object
9 10 11 |
# File 'lib/arel/collectors/plain_string.rb', line 9 def value @str end |