method
boolean_writer
boolean_writer(name, disp_name=name)
private
Hide source
# File lib/rss/rss.rb, line 496 def boolean_writer(name, disp_name=name) module_eval( def #{name}=(new_value) if new_value.nil? @#{name} = new_value else if @do_validate and ![true, false, "true", "false"].include?(new_value) raise NotAvailableValueError.new('#{disp_name}', new_value) end if [true, false].include?(new_value) @#{name} = new_value else @#{name} = new_value == "true" end end end, *get_file_and_line_from_caller(2)) end