Class: ActiveSupport::XMLConverter
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/core_ext/hash/conversions.rb
Overview
:nodoc:
Defined Under Namespace
Classes: DisallowedType
Constant Summary collapse
- DISALLOWED_TYPES =
%w(symbol yaml)
Instance Method Summary collapse
-
#initialize(xml, disallowed_types = nil) ⇒ XMLConverter
constructor
A new instance of XMLConverter.
- #to_h ⇒ Object
Constructor Details
#initialize(xml, disallowed_types = nil) ⇒ XMLConverter
Returns a new instance of XMLConverter.
151 152 153 154 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/core_ext/hash/conversions.rb', line 151 def initialize(xml, disallowed_types = nil) @xml = normalize_keys(XmlMini.parse(xml)) @disallowed_types = disallowed_types || DISALLOWED_TYPES end |
Instance Method Details
#to_h ⇒ Object
156 157 158 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/core_ext/hash/conversions.rb', line 156 def to_h deep_to_h(@xml) end |