Class: Formatters::FormatBoolean
- Defined in:
- lib/formatters/format_boolean.rb
Instance Method Summary collapse
- #from(value, options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ FormatBoolean
constructor
A new instance of FormatBoolean.
- #to(str, options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ FormatBoolean
Returns a new instance of FormatBoolean.
3 4 5 6 |
# File 'lib/formatters/format_boolean.rb', line 3 def initialize( = {}) @on = 'yes' @off = 'no' end |