README.rdoc in ismasan-hash_mapper-0.0.4 vs README.rdoc in ismasan-hash_mapper-0.0.5
- old
+ new
@@ -121,10 +121,19 @@
NameMapper.denormalize(output) # => input
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:
From this:
@@ -181,21 +190,9 @@
... Will map each employee using UserMapper.
== REQUIREMENTS:
== TODO:
-=== Array access
-
-* See pending specs
-
-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:
# If you haven't done this already:
\ No newline at end of file