Module: XmlHasher::Configurable

Included in:
XmlHasher
Defined in:
lib/xmlhasher/configurable.rb

Constant Summary collapse

KEYS =
[:snakecase, :ignore_namespaces, :string_keys]

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.



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

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.



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

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.



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

def string_keys=(value)
  @string_keys = value
end

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:



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

def configure
  yield self
  self
end