Class: Peanuts::Converter::Convert_yesno
- Inherits:
-
Convert_boolean
- Object
- Peanuts::Converter
- Convert_string
- Convert_boolean
- Peanuts::Converter::Convert_yesno
- Defined in:
- lib/peanuts/converters.rb
Overview
The same as Convert_boolean
but with the :yes_no
default format.
- Specifier
-
:yesno
Instance Method Summary collapse
-
#initialize(options) ⇒ Convert_yesno
constructor
A new instance of Convert_yesno.
Methods inherited from Convert_boolean
Methods inherited from Convert_string
Methods inherited from Peanuts::Converter
create, create!, lookup, lookup!
Constructor Details
#initialize(options) ⇒ Convert_yesno
Returns a new instance of Convert_yesno.
117 118 119 120 |
# File 'lib/peanuts/converters.rb', line 117 def initialize() [:format] ||= :yes_no super end |