Skip to content

Instantly share code, notes, and snippets.

@lstoldt
Created October 11, 2011 20:33
Show Gist options
  • Save lstoldt/1279334 to your computer and use it in GitHub Desktop.
Save lstoldt/1279334 to your computer and use it in GitHub Desktop.
JRuby Error
$ jruby -S test.rb
one
sentence
two
a very l
ong sentence three
message = "ignored%sentence one\nsentence two\na very long sentence three "
message = message.split('%')[1]
message.lines do |line|
puts line
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment