lib/eav_hashes/eav_hash.rb
def clear
        load_entries_if_needed
        @entries.each do |_, entry|
          entry.value = nil
        end
      end
# Empties the hash by setting all the values to nil
# (without committing them, of course)
Empties the hash by setting all the values to nil
(without committing them, of course)
Empties the hash by setting all the values to nil ( without committing them of course )
def clear
        load_entries_if_needed
        @entries.each do |_, entry|
          entry.value = nil
        end
      end
def clear load_entries_if_needed @entries . each do | _ , entry | entry . value = nil end end
Empties the hash by setting all the values to nil
(without committing them, of course)
Empties the hash by setting all the values to nil ( without committing them of course )