Skip to content

Instantly share code, notes, and snippets.

Created September 20, 2013 11:14
Show Gist options
  • Save anonymous/c24f0d5ec4b5e7ee7e65 to your computer and use it in GitHub Desktop.
Save anonymous/c24f0d5ec4b5e7ee7e65 to your computer and use it in GitHub Desktop.
require 'pp'
num_length = 10
a = ["91665865753", "91", "324", "878", "994"]
a.each do |num|
if num.length.to_i < num_length
a.delete(num)
end
end
pp a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment