Sha256: 645ff158e0ce28f21d021810029c724d7f8762b726a625e14013efc69f47ea74

Contents?: true

Size: 289 Bytes

Versions: 7

Compression:

Stored size: 289 Bytes

Contents

module IOStreams
  module File
    class Writer
      # Write to 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, 'wb', &block)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
iostreams-0.17.3 lib/io_streams/file/writer.rb
iostreams-0.17.2 lib/io_streams/file/writer.rb
iostreams-0.17.1 lib/io_streams/file/writer.rb
iostreams-0.17.0 lib/io_streams/file/writer.rb
iostreams-0.16.2 lib/io_streams/file/writer.rb
iostreams-0.16.1 lib/io_streams/file/writer.rb
iostreams-0.16.0 lib/io_streams/file/writer.rb