Sha256: db6c68e3dbf70e9572f787e90b840942458ad88d56eae7701538addea285846e

Contents?: true

Size: 325 Bytes

Versions: 4

Compression:

Stored size: 325 Bytes

Contents

require 'facets/memoizable'

class Module

  # This is here for backward compatibility.
  #
  # @uncommon
  #   require 'facets/module/memoize'
  #
  def memoize(*args)
    include Memoizable
    Memoizable.instance_method(:memoize).bind(self).call(*args)
    #super(*args)  # TODO: why is super not working here?
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/module/memoize.rb
facets-3.1.0 lib/core/facets/module/memoize.rb
facets-3.0.0 lib/core/facets/module/memoize.rb
facets-2.9.3 lib/core/facets/module/memoize.rb