Class: Formatters::Format
Direct Known Subclasses
FormatBoolean, FormatCurrency, FormatDecimal, FormatInteger, FormatPercent, FormatPhone
Instance Method Summary collapse
- #from(value, options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Format
constructor
A new instance of Format.
- #to(str, options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Format
Returns a new instance of Format.
3 4 |
# File 'lib/formatters/format.rb', line 3 def initialize( = {}) end |
Instance Method Details
#from(value, options = {}) ⇒ Object
6 7 8 |
# File 'lib/formatters/format.rb', line 6 def from(value, = {}) raise FormatNotDefinedException end |
#to(str, options = {}) ⇒ Object
10 11 12 |
# File 'lib/formatters/format.rb', line 10 def to(str, = {}) raise FormatNotDefinedException end |