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

Instance Method Summary collapse

Instance Attribute Details

#ignore_namespaces=(value) ⇒ Object (writeonly)

Sets the attribute ignore_namespaces

Parameters:

  • value

    the value to set the attribute ignore_namespaces to.



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

Parameters:

  • value

    the value to set the attribute snakecase to.



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

Parameters:

  • value

    the value to set the attribute string_keys to.



5
6
7
# File 'lib/xmlhasher/configurable.rb', line 5

def string_keys=(value)
  @string_keys = value
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



9
10
11
12
# File 'lib/xmlhasher/configurable.rb', line 9

def configure
  yield self
  self
end