Module: XmlHasher::Configurable
- Included in:
- XmlHasher
- Defined in:
- lib/xmlhasher/configurable.rb
Constant Summary collapse
- KEYS =
%i[snakecase ignore_namespaces string_keys].freeze
Instance Attribute Summary collapse
-
#ignore_namespaces ⇒ Object
writeonly
Sets the attribute ignore_namespaces.
-
#snakecase ⇒ Object
writeonly
Sets the attribute snakecase.
-
#string_keys ⇒ Object
writeonly
Sets the attribute string_keys.
Instance Method Summary collapse
Instance Attribute Details
#ignore_namespaces=(value) ⇒ Object (writeonly)
Sets the attribute ignore_namespaces
5 6 7 |
# File 'lib/xmlhasher/configurable.rb', line 5 def ignore_namespaces=(value) @ignore_namespaces = value end |
#snakecase=(value) ⇒ Object (writeonly)
Sets the attribute snakecase
5 6 7 |
# File 'lib/xmlhasher/configurable.rb', line 5 def snakecase=(value) @snakecase = value end |
#string_keys=(value) ⇒ Object (writeonly)
Sets the attribute string_keys
5 6 7 |
# File 'lib/xmlhasher/configurable.rb', line 5 def string_keys=(value) @string_keys = value end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
9 10 11 12 |
# File 'lib/xmlhasher/configurable.rb', line 9 def configure yield self self end |