class Rufus::Lru::Hash

def call_on_removal(value)

def call_on_removal(value)
  if ! @on_removal
    # nothing to do
  elsif @on_removal.is_a?(Symbol)
    value.send(@on_removal)
  else # must be a block
    @on_removal.call(value)
  end
end