Class: Riff::Builder::IOProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/riff/writer.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(i) ⇒ IOProxy

Returns a new instance of IOProxy.



82
83
84
85
# File 'lib/riff/writer.rb', line 82

def initialize(i)
  @io = i
  @startPos = i.pos
end

Instance Method Details

#<<(data) ⇒ Object



91
92
93
# File 'lib/riff/writer.rb', line 91

def <<(data)
  write(data)
end

#posObject



95
96
97
# File 'lib/riff/writer.rb', line 95

def pos
  @io.pos
end

#putc(c) ⇒ Object



103
104
105
# File 'lib/riff/writer.rb', line 103

def putc(c)
  @io.putc(c)
end

#seek(offset, whence) ⇒ Object



99
100
101
# File 'lib/riff/writer.rb', line 99

def seek(offset,whence)
  @io.seek(offset,whence)
end

#write(data) ⇒ Object



87
88
89
# File 'lib/riff/writer.rb', line 87

def write(data)
  @io.write data
end