Skip to content

Instantly share code, notes, and snippets.

@jakenotjacob
Created October 19, 2015 20:07
Show Gist options
  • Save jakenotjacob/b0c4decc0d0878836844 to your computer and use it in GitHub Desktop.
Save jakenotjacob/b0c4decc0d0878836844 to your computer and use it in GitHub Desktop.
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