Skip to content

Commit

Permalink
updated docs for symbolize_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Ohler committed Jun 26, 2012
1 parent da0aee7 commit efbf860
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -9,3 +9,5 @@ Makefile
.rbenv-version
*.rbc
.rbx
.yardoc
doc
4 changes: 2 additions & 2 deletions build_test.sh
Expand Up @@ -5,11 +5,11 @@ export RBXOPT=-X19
for ruby in \
1.8.7-p358\
1.9.2-p290\
1.9.3-p194\
jruby-1.6.7\
rbx-1.2.4\
rbx-2.0.0-dev\
ree-1.8.7-2012.02
ree-1.8.7-2012.02\
1.9.3-p194
do
echo "\n********************************************************************************"
echo "Building $ruby\n"
Expand Down
4 changes: 4 additions & 0 deletions ext/ox/ox.c
Expand Up @@ -162,6 +162,7 @@ static void parse_dump_options(VALUE ropts, Options copts);
* - xsd_date: [true|false|nil] use XSD date format instead of decimal format
* - mode: [:object|:generic|:limited|nil] load method to use for XML
* - effort: [:strict|:tolerant|:auto_define] set the tolerance level for loading
* - symbolize_keys: [true|false|nil] symbolize element attribute keys or leave as Strings
* @return [Hash] all current option settings.
*/
static VALUE
Expand Down Expand Up @@ -209,6 +210,7 @@ get_def_opts(VALUE self) {
* @param [true|false|nil] :xsd_date use XSD date format instead of decimal format
* @param [:object|:generic|:limited|nil] :mode load method to use for XML
* @param [:strict|:tolerant|:auto_define] :effort set the tolerance level for loading
* @param [true|false|nil] :symbolize_keys symbolize element attribute keys or leave as Strings
* @return [nil]
*/
static VALUE
Expand Down Expand Up @@ -425,6 +427,7 @@ load(char *xml, int argc, VALUE *argv, VALUE self) {
* - *:tolerant* - return nil for missing classes and modules
* - *:auto_define* - auto define missing classes and modules
* @param [Fixnum] :trace trace level as a Fixnum, default: 0 (silent)
* @param [true|false|nil] :symbolize_keys symbolize element attribute keys or leave as Strings
*/
static VALUE
load_str(int argc, VALUE *argv, VALUE self) {
Expand Down Expand Up @@ -464,6 +467,7 @@ load_str(int argc, VALUE *argv, VALUE self) {
* - *:tolerant* - return nil for missing classes and modules
* - *:auto_define* - auto define missing classes and modules
* @param [Fixnum] :trace trace level as a Fixnum, default: 0 (silent)
* @param [true|false|nil] :symbolize_keys symbolize element attribute keys or leave as Strings
*/
static VALUE
load_file(int argc, VALUE *argv, VALUE self) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ox/version.rb
@@ -1,5 +1,5 @@

module Ox
# Current version of the module.
VERSION = '1.5.7'
VERSION = '1.5.8'
end

0 comments on commit efbf860

Please sign in to comment.