Sha256: 44fbd1f986adb83ae5e80f4454dc89e6090f75cc44674d4833050d8e123e0a83
Contents?: true
Size: 916 Bytes
Versions: 1
Compression:
Stored size: 916 Bytes
Contents
module HTTPotato 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
httpotato-1.0.2 | lib/httpotato/core_extensions.rb |