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

Constructor Details

#initialize(options) ⇒ Convert_yesno

Returns a new instance of Convert_yesno.



108
109
110
111
# File 'lib/peanuts/converters.rb', line 108

def initialize(options)
  options[:format] ||= :yes_no
  super
end