# File lib/kirbybase.rb, line 2173 def update_all(*updates, &update_proc) raise 'Cannot specify both a hash/array/struct and a ' + \ 'proc for method #update_all!' unless updates.empty? or \ update_proc.nil? raise 'Must specify either hash/array/struct or update ' + \ 'proc for method #update_all!' if updates.empty? and \ update_proc.nil? # Depending on whether the user supplied an array/hash/struct or a # block as update criteria, we are going to call updates in one of # two ways. if updates.empty? update { true }.set &update_proc else update(*updates) { true } end end