Sha256: 1b630d4df9f60b866568323875fde1998f67420434daf5263c48100b830d1559

Contents?: true

Size: 209 Bytes

Versions: 2

Compression:

Stored size: 209 Bytes

Contents

require 'tempfile'
require 'jpeg.so'
class Jpeg
  def self.open_buffer(str)
    tmp = Tempfile::new("ruby-jpeg")
    tmp.puts str
    tmp.rewind
    jpeg = Jpeg.open(tmp.path)
    tmp.close
    jpeg
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jpeg-0.1.2 lib/jpeg.rb
jpeg-0.1.1 lib/jpeg.rb