def toll_free_dealer_phone(phone) phone.gsub(/^(866|877|888)/, '1-\1') end
Ruby On Add 1- in front of a number
by andyjeffries,
July 22, 2009 12:17
A simple gsub on the string...
s = "The green hat is the twin of the green hat" h = Hash.new(0) s.split.each do |w| ...
Ruby Count words in a string
This is a coding question I...
Tj wrote:
"PS. if you think...