Class/Module Index [+]

Quicksearch

ActiveSupport::XmlMini

XmlMini

To use the much faster libxml parser:

gem 'libxml-ruby', '=0.9.7'
XmlMini.backend = 'LibXML'

Attributes

backend[R]

Public Instance Methods

backend=(name) click to toggle source
# File lib/active_support/xml_mini.rb, line 13
def backend=(name)
  if name.is_a?(Module)
    @backend = name
  else
    require "active_support/xml_mini/#{name.to_s.downcase}.rb"
    @backend = ActiveSupport.const_get("XmlMini_#{name}")
  end
end
with_backend(name) click to toggle source
# File lib/active_support/xml_mini.rb, line 22
def with_backend(name)
  old_backend, self.backend = backend, name
  yield
ensure
  self.backend = old_backend
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.