Categories: None [Edit]

model-mapper

https://rubygems.org/gems/model-mapper
https://github.com/dougyouch/mappable
Declare once how fields map from one object to another, and Mappable compiles it into plain Ruby methods that copy the data both ways at close to hand-written speed. Rename fields, combine several into one (first_name + last_name -> name) and split them back out, and skip fields with conditions on the source, the destination or the mapping itself. Works with any objects that have getters and setters: Structs, ActiveRecord models, plain Ruby classes.

Total

Ranking: 166,292 of 198,526
Downloads: 3,323

Daily

Ranking: 103,736 of 198,451
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
70,04315,440inheritance-helper

Owners

#GravatarHandle
1icondougyouch