From: Lars Olsson Date: 2010-09-10T19:50:09+09:00 Subject: Re: How to do foo.chomp!.rstrip!.downcase! ? On 10 Sep, 09:31, Brian Candler wrote: > Geometric Patterns wrote: > > > Rather than: > > > foo.chomp! > > foo.rstrip! > > foo.downcase! > > You could do: > > foo.instance_eval { chomp!; rstrip!; downcase! } > -- > Posted viahttp://www.ruby-forum.com/. ...or just don't use the "bang" versions of the methods: foo = foo.chomp.rstrip.downcase /lasso