Skip to content

Commit b7adc2f

Browse files
author
Nathan Sutton
committed
Adds documentation for disallowing types while parsing
1 parent 0422385 commit b7adc2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/multi_xml.rb

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def parser=(new_parser)
112112
# <b>Options</b>
113113
#
114114
# <tt>:symbolize_keys</tt> :: If true, will use symbols instead of strings for the keys.
115+
#
116+
# <tt>:disallowed_types</tt> :: Types to disallow from being typecasted. Defaults to `['yaml', 'symbol']`. Use `[]` to allow all types.
115117
def parse(xml, options={})
116118
xml ||= ''
117119

0 commit comments

Comments
 (0)