lib/io_streams/file/reader.rb in iostreams-0.17.3 vs lib/io_streams/file/reader.rb in iostreams-0.18.0
- old
+ new
@@ -1,10 +1,8 @@
module IOStreams
module File
class Reader
# Read from a named file
- # TODO: Add support for mode (text / binary)
- # TODO: Add encoding support: external_encoding, internal_encoding
def self.open(file_name, **args, &block)
raise(ArgumentError, 'File name must be a string') unless file_name.is_a?(String)
::File.open(file_name, 'rb', &block)
end