Module: IfcDateInstanceMethods

Included in:
IfcDate
Defined in:
lib/ifc_date/instance_methods.rb

Instance Method Summary collapse

Instance Method Details

#clear_memoization_resultsObject

In case a crucial element of the object itself changes the memoization should be cleared. Note that this is not expected since the current way of reasoning assumes new object creation. Maybe something of the future could be:

date = Date.today.ifc
date.move_forward 3.days

But this is for later consideration



8
9
10
# File 'lib/ifc_date/instance_methods.rb', line 8

def clear_memoization_results
  @_memoized_methods.clear
end