lib/nanoc/base/memoization.rb in nanoc-3.8.0 vs lib/nanoc/base/memoization.rb in nanoc-4.0.0a1
- old
+ new
@@ -1,10 +1,12 @@
# encoding: utf-8
-module Nanoc
+module Nanoc::Int
# Adds support for memoizing functions.
#
+ # @api private
+ #
# @since 3.2.0
module Memoization
# Memoizes the method with the given name. The modified method will cache
# the results of the original method, so that calling a method twice with
# the same arguments will short-circuit and return the cached results
@@ -18,10 +20,10 @@
#
# @example A fast fib function due to memoization
#
# class FibFast
#
- # extend Nanoc::Memoization
+ # extend Nanoc::Int::Memoization
#
# def run(n)
# if n == 0
# 0
# elsif n == 1