You can move these trailing periods to the front of their respective lines and ruby 1.9+ will parse them properly. That way reads more clearly, IMO, because the leading period calls attention to the chaining.