Sha256: 16b4b5e674f83ad801d932f5ca5ba95896a5406658fdeb71b4291055e489aa02

Contents?: true

Size: 319 Bytes

Versions: 39

Compression:

Stored size: 319 Bytes

Contents

module URI
  class Data
    def open
      io = StringIO.new(data)
      OpenURI::Meta.init(io)
      io.meta_add_field('content-type', content_type)
      if block_given?
        begin
          yield io
        ensure
          io.close
        end
      else
        io
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
isomorfeus-preact-23.9.0.rc12 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc11 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc10 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc9 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc8 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc7 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc6 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc5 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc4 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc3 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc2 lib/data_uri/open_uri.rb
isomorfeus-preact-23.9.0.rc1 lib/data_uri/open_uri.rb
isomorfeus-preact-23.8.0.rc3 lib/data_uri/open_uri.rb
isomorfeus-preact-23.8.0.rc2 lib/data_uri/open_uri.rb
isomorfeus-preact-23.8.0.rc1 lib/data_uri/open_uri.rb
isomorfeus-preact-23.7.0.rc5 lib/data_uri/open_uri.rb
isomorfeus-preact-23.7.0.rc4 lib/data_uri/open_uri.rb
isomorfeus-preact-23.7.0.rc3 lib/data_uri/open_uri.rb
isomorfeus-preact-23.7.0.rc2 lib/data_uri/open_uri.rb
isomorfeus-preact-23.7.0.rc1 lib/data_uri/open_uri.rb