Sha256: f21116d66f83b896e5421faa6783854de10b30fcd8531dd8f405e7ec6bd66308

Contents?: true

Size: 325 Bytes

Versions: 17

Compression:

Stored size: 325 Bytes

Contents

# A wrapper for IO which works on the backing buffer
# and proxies all IO methods
class Tracksperanto::IOWrapper
  extend Forwardable
  attr_reader :backing_buffer
  IO_METHODS = (IO.instance_methods - Object.instance_methods - Enumerable.instance_methods).map{|e| e.to_sym }
  def_delegators :backing_buffer, *IO_METHODS
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tracksperanto-4.2.0 lib/tracksperanto/io_wrapper.rb
tracksperanto-4.1.3 lib/tracksperanto/io_wrapper.rb
tracksperanto-4.1.2 lib/tracksperanto/io_wrapper.rb
tracksperanto-4.1.0 lib/tracksperanto/io_wrapper.rb
tracksperanto-4.0.0 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.9 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.8 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.7 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.6 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.5 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.4 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.2 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.1 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.5.0 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.4.1 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.4.0 lib/tracksperanto/io_wrapper.rb
tracksperanto-3.3.13 lib/tracksperanto/io_wrapper.rb