Created
October 11, 2011 20:33
-
-
Save lstoldt/1279334 to your computer and use it in GitHub Desktop.
JRuby Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -S test.rb | |
one | |
sentence | |
two | |
a very l | |
ong sentence three |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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