Method: Factis#forget_fact

Defined in:
lib/factis.rb

#forget_fact(fact) ⇒ Object

Removes the given fact (key) from internal storage, raising an error for an unknown fact

Parameters:

  • fact

    the key of the fact to remove

Returns:

  • (Object)

    the content of the removed fact

Raises:

  • (RuntimeError)

    if the key is not in the fact hash



64
65
66
# File 'lib/factis.rb', line 64

def forget_fact(fact)
  Factis::Memory.forget(fact)
end