S
Steel Steel
Using 1.9.1
I noticed something with chomp
$ echo "abc" | ruby -e 'puts gets.chomp("c")'
abc
$ irb
irb(main):001:0> "abc".chomp("c")
=> "ab"
It doesn't work on the command line, or am i doing it wrong.?
comments?
I noticed something with chomp
$ echo "abc" | ruby -e 'puts gets.chomp("c")'
abc
$ irb
irb(main):001:0> "abc".chomp("c")
=> "ab"
It doesn't work on the command line, or am i doing it wrong.?
comments?