Module: Fluent::FileWrapper
- Defined in:
- lib/fluent/file_wrapper.rb
Class Method Summary collapse
Class Method Details
.open(path, mode = 'r') ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/fluent/file_wrapper.rb', line 24 def self.open(path, mode='r') io = WindowsFile.new(path, mode).io if block_given? v = yield io io.close v else io end end |
.stat(path) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/fluent/file_wrapper.rb', line 35 def self.stat(path) f = WindowsFile.new(path) s = f.stat f.close s end |