Method: Alexandrite::Helpers::Format#remove_non_digits
- Defined in:
- lib/helpers/format.rb
#remove_non_digits(string) ⇒ String
9 10 11 |
# File 'lib/helpers/format.rb', line 9 def remove_non_digits(string) string.gsub!(/[^+\d]/, '') end |