Module: PNG::Encode::ClassMethods
- Defined in:
- lib/png-encode/encode.rb
Instance Method Summary collapse
Instance Method Details
#encode(infile, outfile) ⇒ Object
9 10 11 12 |
# File 'lib/png-encode/encode.rb', line 9 def encode(infile, outfile) infile = File.open(infile, 'rb') if infile.is_a?(String) self.new(infile).encode(outfile) end |