Class: Minx::FileChannel
- Inherits:
-
IOChannel
- Object
- IOChannel
- Minx::FileChannel
- Defined in:
- lib/minx/file_channel.rb
Instance Method Summary (collapse)
-
- (FileChannel) initialize(filename, options = {})
constructor
Open a new file channel.
Methods inherited from IOChannel
Constructor Details
- (FileChannel) initialize(filename, options = {})
Open a new file channel.
The lines of the file will be returned upon calls to IOChannel#read.
13 14 15 16 17 |
# File 'lib/minx/file_channel.rb', line 13 def initialize(filename, = {}) [:mode] ||= 'r' super(::File.new(filename, [:mode])) end |