Skip to content

Commit

Permalink
Merge pull request #36 from edmz/patch-1
Browse files Browse the repository at this point in the history
README.rd: it's snakecase, not snake_case.
  • Loading branch information
rubiii committed Feb 15, 2013
2 parents 68c68e8 + f32bc86 commit 582ea5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Nori lets you specify a custom formula to convert XML tags to Hash keys.
Let me give you an example:

``` ruby
parser = Nori.new(:convert_tags_to => lambda { |tag| tag.snake_case.to_sym })
parser = Nori.new(:convert_tags_to => lambda { |tag| tag.snakecase.to_sym })

xml = '<userResponse><accountStatus>active</accountStatus></userResponse>'
parser.parse(xml) # => { :user_response => { :account_status => "active" }
Expand Down

0 comments on commit 582ea5c

Please sign in to comment.