Created
March 23, 2016 00:07
-
-
Save chuck0523/c156aecd5aa77d629579 to your computer and use it in GitHub Desktop.
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
str = 'hello' | |
puts str.delete 'h' # ello | |
puts str.delete 'l' # heo | |
puts str.delete 'f-z' # e ←範囲指定 | |
puts str.delete '^e' # e以外 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment