Skip to content

Commit

Permalink
Array access info is TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
ismasan committed Jul 29, 2009
1 parent 1362045 commit 93e8618
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.rdoc
Expand Up @@ -123,15 +123,6 @@ Just use the denormalize() method instead:
This will work with your block filters and even nested mappers (see below).

=== Advanced usage
==== Array access
You want:

{:names => ['Ismael', 'Celis']} converted to {:first_name => 'Ismael', :last_name => 'Celis'}

Do this:

map from('/names[0]'), to('/first_name')
map from('/names[1]'), to('/last_name')
==== Nested mappers

You want to map nested structures delegating to different mappers:
Expand Down Expand Up @@ -218,6 +209,15 @@ Note also that 'output' is correct at the time of the filter, i.e. before_normal
== REQUIREMENTS:

== TODO:
==== Array access
You want:

{:names => ['Ismael', 'Celis']} converted to {:first_name => 'Ismael', :last_name => 'Celis'}

Do this:

map from('/names[0]'), to('/first_name')
map from('/names[1]'), to('/last_name')

== INSTALL:

Expand Down

0 comments on commit 93e8618

Please sign in to comment.