lib/io_streams/deprecated.rb in iostreams-1.1.0 vs lib/io_streams/deprecated.rb in iostreams-1.1.1
- old
+ new
@@ -1,16 +1,15 @@
module IOStreams
- UTF8_ENCODING = Encoding.find('UTF-8').freeze
- BINARY_ENCODING = Encoding.find('BINARY').freeze
+ UTF8_ENCODING = Encoding.find("UTF-8").freeze
+ BINARY_ENCODING = Encoding.find("BINARY").freeze
# Deprecated IOStreams from v0.x. Do not use, will be removed soon.
module Deprecated
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
-
# DEPRECATED. Use `#path` or `#io`
# Examples:
# IOStreams.path("data.zip").reader { |f| f.read(100) }
#
# IOStreams.path(file_name).option(:encode, encoding: "BINARY").reader { |f| f.read(100) }