copy output
RubyMate r6354 running Ruby r1.8.2 (/usr/bin/ruby)
>>> test.rb
/Users/Barton/Desktop/test.rb:3: warning: parenthesize argument(s) for future version
/Users/Barton/Desktop/test.rb:3: warning: parenthesize argument(s) for future version
/Users/Barton/Desktop/test.rb:3: warning: parenthesize argument(s) for future version
/Users/Barton/Desktop/test.rb:3: syntax error
If text is a string: puts(text.split.inject(Hash.new(0)) {|h,word| h[word] += 1; h}.sort_by {|k,v| -v}.map {|k,v| k})
^