Class: Peanuts::Converter::Convert_yesno

Inherits:
Convert_boolean show all
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

Methods inherited from Convert_boolean

#from_xml, #to_xml

Methods inherited from Convert_string

#from_xml, #to_xml

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(options)
  options[:format] ||= :yes_no
  super
end