Class: Bob::Compiler::Buffer::SameLineProxy
- Inherits:
-
Object
- Object
- Bob::Compiler::Buffer::SameLineProxy
- Defined in:
- lib/bob/compiler/buffer.rb
Instance Method Summary collapse
- #<<(string) ⇒ Object
-
#initialize(buffer) ⇒ SameLineProxy
constructor
A new instance of SameLineProxy.
Constructor Details
#initialize(buffer) ⇒ SameLineProxy
Returns a new instance of SameLineProxy.
7 8 9 |
# File 'lib/bob/compiler/buffer.rb', line 7 def initialize(buffer) @buffer = buffer end |
Instance Method Details
#<<(string) ⇒ Object
11 12 13 14 |
# File 'lib/bob/compiler/buffer.rb', line 11 def <<(string) @buffer.<< string, true self end |