module SimpleTextReformatter
Constants
- VERSION
Public Class Methods
format_as_currency(string)
click to toggle source
# File lib/simple_text_reformatter.rb, line 12 def self.format_as_currency(string) SimpleTextReformatter::CurrencyFormatter.new(string.to_s).reformat end
format_as_phone_number(string)
click to toggle source
# File lib/simple_text_reformatter.rb, line 8 def self.format_as_phone_number(string) SimpleTextReformatter::PhoneNumberFormatter.new(string).reformat end