Simple anaphora implementation for ruby
(["12345", "12345"]).map(&it.slice(0..1)).should == ["12", "12"]