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