Sha256: 564af2eac866b9da73fdeade1d84fa0ba863d612f57e9e1e58d48789bcca43c6
Contents?: true
Size: 150 Bytes
Versions: 12
Compression:
Stored size: 150 Bytes
Contents
module Spank module LambdaBehaviours def memoize(lambda_method) lambda { |*args| @cache ||= lambda_method.call(*args) } end end end
Version data entries
12 entries across 12 versions & 1 rubygems