Class: Bob::Compiler::Buffer::SameLineProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/bob/compiler/buffer.rb

Instance Method Summary collapse

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