module Zinzout
Constants
- DEFAULT_ENCODING
- VERSION
Public Class Methods
zin(filename = nil, encoding: DEFAULT_ENCODING) { |io| ... }
click to toggle source
# File lib/zinzout.rb, line 9 def self.zin(filename = nil, encoding: DEFAULT_ENCODING) zin = Zin.new(filename, encoding) if block_given? yield zin.io zin.close end zin.io end
zout(filename = nil, encoding: DEFAULT_ENCODING) { |io| ... }
click to toggle source
# File lib/zinzout.rb, line 18 def self.zout(filename = nil, encoding: DEFAULT_ENCODING) zout = Zout.new(filename, encoding) if block_given? yield zout.io zout.close nil else zout.io end end