Sha256: e5cb38c64f2bf3bf249e9e40430b779231ab3379c1152e9d204fbe7cee1a4b3e

Contents?: true

Size: 915 Bytes

Versions: 20

Compression:

Stored size: 915 Bytes

Contents

module HTTParty
  if defined?(::BasicObject)
    BasicObject = ::BasicObject #:nodoc:
  else
    class BasicObject #:nodoc:
      instance_methods.each { |m| undef_method m unless m =~ /^__|instance_eval/ }
    end
  end
end

# 1.8.6 has mistyping of transitive in if statement
require "rexml/document"
module REXML #:nodoc:
  class Document < Element #:nodoc:
    def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
      if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output)
        output = Output.new( output, xml_decl.encoding )
      end
      formatter = if indent > -1
          if transitive
            REXML::Formatters::Transitive.new( indent, ie_hack )
          else
            REXML::Formatters::Pretty.new( indent, ie_hack )
          end
        else
          REXML::Formatters::Default.new( ie_hack )
        end
      formatter.write( self, output )
    end
  end
end

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
httparty-0.7.8 lib/httparty/core_extensions.rb
httparty-0.7.7 lib/httparty/core_extensions.rb
httparty-0.7.6 lib/httparty/core_extensions.rb
httparty-0.7.4 lib/httparty/core_extensions.rb
httparty-0.7.3 lib/httparty/core_extensions.rb
httparty-0.7.2 lib/httparty/core_extensions.rb
httparty-0.7.0 lib/httparty/core_extensions.rb
dnclabs-httparty-0.6.1.2010090201 lib/httparty/core_extensions.rb
bartzon-httparty-0.6.1 lib/httparty/core_extensions.rb
httparty-0.6.1 lib/httparty/core_extensions.rb
httparty-0.6.0 lib/httparty/core_extensions.rb
jugend-httparty-0.5.2.3 lib/httparty/core_extensions.rb
jugend-httparty-0.5.2.2 lib/httparty/core_extensions.rb
jugend-httparty-0.5.2.1 lib/httparty/core_extensions.rb
jugend-httparty-0.5.3.4 lib/httparty/core_extensions.rb
httparty-0.5.2 lib/httparty/core_extensions.rb
httparty-0.5.1 lib/httparty/core_extensions.rb
luigi-httparty-0.5.0.1 lib/httparty/core_extensions.rb
luigi-httparty-0.5.0 lib/httparty/core_extensions.rb
httparty-0.5.0 lib/httparty/core_extensions.rb