Sha256: 1fd33c68a5a56744e0799df7f14d6fa5293b6af14e9b34334201706864e57a08

Contents?: true

Size: 238 Bytes

Versions: 1

Compression:

Stored size: 238 Bytes

Contents

class Kommando::Buffer

  def initialize
    @buffer = []
  end

  def append(string)
    @buffer << string
  end

  def to_s
    @buffer.join ""
  end

  def <<(string)
    @buffer << string
  end

  def getc
    @buffer.shift
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kommando-0.0.11 lib/kommando/buffer.rb