Last active
May 30, 2017 17:52
-
-
Save BanzaiMan/865f8d135350269c3eccdda44344d754 to your computer and use it in GitHub Desktop.
Display of Strings with newlines
This file contains hidden or 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
strokkur[~]$ rbenv global 2.3.4 | |
strokkur[~]$ irb | |
irb(main):001:0> "a\nb" | |
=> "a\nb" | |
irb(main):002:0> exit | |
strokkur[~]$ pry | |
[1] pry(main)> "a\nb" | |
=> "a\nb" | |
[2] pry(main)> exit |
This file contains hidden or 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
strokkur[~]$ rbenv global 2.4.0 | |
strokkur[~]$ irb | |
irb(main):001:0> "a\nb" | |
=> "a\nb" | |
irb(main):002:0> exit | |
strokkur[~]$ pry | |
[1] pry(main)> "a\nb" | |
=> "a\n" + "b" | |
[2] pry(main)> exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment