Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 105 Bytes
def camel2underscores(s)
while s.match /([A-Z]+)/
s = s.gsub /#{$1}/,'_'+$1.downcase
end
s
end