Class: REXML::Element
- Inherits:
-
Object
- Object
- REXML::Element
- Defined in:
- lib/assert2/xpath.rb
Instance Method Summary collapse
-
#write(output = $stdout, indent = -1,, transitive = false, ie_hack = false) ⇒ Object
this patches www.germane-software.com/projects/rexml/ticket/128.
Instance Method Details
#write(output = $stdout, indent = -1,, transitive = false, ie_hack = false) ⇒ Object
this patches www.germane-software.com/projects/rexml/ticket/128
192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/assert2/xpath.rb', line 192 def write(output=$stdout, indent=-1, transitive=false, ie_hack=false) Kernel.warn("#{self.class.name}.write is deprecated. See REXML::Formatters") formatter = if indent > -1 if transitive require "rexml/formatters/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 |