Sha256: e0682abe417ae390c0f2f5d06035652b28f85929a80a5dc6b9410c26cf81678a

Contents?: true

Size: 290 Bytes

Versions: 6

Compression:

Stored size: 290 Bytes

Contents

module IOStreams
  module File
    class Reader
      # Read from a named file
      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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
iostreams-0.20.3 lib/io_streams/file/reader.rb
iostreams-0.20.2 lib/io_streams/file/reader.rb
iostreams-0.20.1 lib/io_streams/file/reader.rb
iostreams-0.20.0 lib/io_streams/file/reader.rb
iostreams-0.19.0 lib/io_streams/file/reader.rb
iostreams-0.18.0 lib/io_streams/file/reader.rb