Method: Phil.phone

Defined in:
lib/phil.rb

.phone(format = "(###) ###-####") ⇒ Object



67
68
69
# File 'lib/phil.rb', line 67

def phone(format = "(###) ###-####")
  format.gsub(/#/) { rand(9) + 1 }
end