Sha256: 61f306cc75e93748880a59baac5c647d220583fdce3a6486c6a54af76b34e1a9
Contents?: true
Size: 208 Bytes
Versions: 3
Compression:
Stored size: 208 Bytes
Contents
module Ting class MemoizeCall include Procable def initialize(target) @target = target @map = {} end def call(*args) @map[args] ||= @target.call(*args) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ting-0.12.0 | lib/ting/memoize_call.rb |
ting-0.11.0 | lib/ting/memoize_call.rb |
ting-0.10.0 | lib/ting/memoize_call.rb |