lib/care.rb in format_parser-0.14.0 vs lib/care.rb in format_parser-0.14.1
- old
+ new
@@ -135,9 +135,10 @@
# Clears the page cache of all strings with data
#
# @return void
def clear
+ @pages.map { |maybe_page_str| maybe_page_str.clear if maybe_page_str.respond_to?(:clear) }
@pages.clear
end
# Hydrates a page at the certain index or returns the contents of
# that page if it is already in the cache