Method: ActiveSupport::XMLConverter#initialize
- Defined in:
- activesupport/lib/active_support/core_ext/hash/conversions.rb
#initialize(xml, disallowed_types = nil) ⇒ XMLConverter
Returns a new instance of XMLConverter.
131 132 133 134 |
# File 'activesupport/lib/active_support/core_ext/hash/conversions.rb', line 131 def initialize(xml, disallowed_types = nil) @xml = normalize_keys(XmlMini.parse(xml)) @disallowed_types = disallowed_types || DISALLOWED_TYPES end |