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