Sha256: d0ad9f8dec02e33ef726c97aac1c7331c9e7030fbe05f2b714062ee98e777f03

Contents?: true

Size: 327 Bytes

Versions: 50

Compression:

Stored size: 327 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

50 entries across 50 versions & 1 rubygems

Version Path
isomorfeus-data-2.5.5 lib/data_uri/open_uri.rb
isomorfeus-data-2.5.4 lib/data_uri/open_uri.rb
isomorfeus-data-2.5.3 lib/data_uri/open_uri.rb
isomorfeus-data-2.5.2 lib/data_uri/open_uri.rb
isomorfeus-data-2.5.1 lib/data_uri/open_uri.rb
isomorfeus-data-2.5.0 lib/data_uri/open_uri.rb
isomorfeus-data-2.4.2 lib/data_uri/open_uri.rb
isomorfeus-data-2.4.1 lib/data_uri/open_uri.rb
isomorfeus-data-2.4.0 lib/data_uri/open_uri.rb
isomorfeus-data-2.3.1 lib/data_uri/open_uri.rb
isomorfeus-data-2.3.0 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.11 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.10 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.9 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.8 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.7 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.6 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.5 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.4 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.3 lib/data_uri/open_uri.rb