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.2.2 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.1 lib/data_uri/open_uri.rb
isomorfeus-data-2.2.0 lib/data_uri/open_uri.rb
isomorfeus-data-2.1.1 lib/data_uri/open_uri.rb
isomorfeus-data-2.1.0 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.22 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.21 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.20 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.19 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.18 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.17 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.16 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.15 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.14 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.13 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.12 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.11 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.10 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.9 lib/data_uri/open_uri.rb
isomorfeus-data-2.0.8 lib/data_uri/open_uri.rb