File: //usr/local/rvm/gems/ruby-3.0.2/doc/activerecord-6.1.4.1/ri/ActiveRecord/Persistence/toggle-i.ri
U:RDoc::AnyMethod[iI"toggle:ETI"%ActiveRecord::Persistence#toggle;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [ I"LAssigns to +attribute+ the boolean opposite of <tt>attribute?</tt>. So ;TI"Mif the predicate returns +true+ the attribute will become +false+. This ;TI"Nmethod toggles directly the underlying value without calling any setter. ;TI"Returns +self+.;To:RDoc::Markup::BlankLine o;
; [I"
Example:;T@o:RDoc::Markup::Verbatim; [ I"user = User.first
;TI"user.banned? # => false
;TI"user.toggle(:banned)
;TI"user.banned? # => true;T:@format0:
@fileI"%lib/active_record/persistence.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(attribute);T@FI"Persistence;TcRDoc::NormalModule00