Skip to content

Instantly share code, notes, and snippets.

@rderoldan1
Created November 20, 2012 00:58
Show Gist options
  • Save rderoldan1/4115255 to your computer and use it in GitHub Desktop.
Save rderoldan1/4115255 to your computer and use it in GitHub Desktop.
probando
def find_number(number, index)
puts "Buscando el numero #{index} en #{number.inspect}"
number.join.scan(/#{index}/).count
#number.to_s.scan(/#{index}/).count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment