Module: Resolver::Key::InstanceMethods

Defined in:
lib/resolver/key.rb

Instance Method Summary collapse

Instance Method Details

#resolver_add_keys_to_indexObject



87
88
89
90
91
# File 'lib/resolver/key.rb', line 87

def resolver_add_keys_to_index
  self.class.send(:resolver_keys).each do |key,options|
    self.class.send(:write_index, key, self, options)
  end
end

#resolver_remove_keys_from_indexObject



93
94
95
96
97
# File 'lib/resolver/key.rb', line 93

def resolver_remove_keys_from_index
  self.class.send(:resolver_keys).each do |key,options|
    self.class.send(:clean_index, key, self, options)
  end
end