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.
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 |
#value ⇒ Object
8 9 10 |
# File 'lib/arel/collectors/plain_string.rb', line 8 def value @str end |