Created
October 19, 2015 20:07
-
-
Save jakenotjacob/b0c4decc0d0878836844 to your computer and use it in GitHub Desktop.
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
def seven_ate9(str) | |
num = str.split("") | |
x = 7 | |
y = 9 | |
num.each do |n| | |
if n = y | |
if y.between?(x) | |
num.delete(y) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment