Module: Gyoku
- Defined in:
- lib/gyoku.rb,
lib/gyoku/hash.rb,
lib/gyoku/array.rb,
lib/gyoku/version.rb,
lib/gyoku/xml_key.rb,
lib/gyoku/xml_value.rb,
lib/gyoku/core_ext/string.rb
Defined Under Namespace
Modules: CoreExt, XMLKey, XMLValue Classes: Array, Hash
Constant Summary collapse
- VERSION =
"0.4.3"
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
Yields this object for configuration.
-
.convert_symbols_to(formula = nil, &block) ⇒ Object
Sets the formula for converting Symbol keys.
-
.xml(hash, options = {}) ⇒ Object
Translates a given
hash
withoptions
to XML.
Class Method Details
.configure {|_self| ... } ⇒ Object
Yields this object for configuration.
13 14 15 |
# File 'lib/gyoku.rb', line 13 def configure yield self end |
.convert_symbols_to(formula = nil, &block) ⇒ Object
Sets the formula for converting Symbol keys.
18 19 20 |
# File 'lib/gyoku.rb', line 18 def convert_symbols_to(formula = nil, &block) XMLKey.symbol_converter = formula ? formula : block end |