Edit replace_each_with_obj.rb : study