Closed 3nan3 closed 4 years ago
I tried Usage and I thought that it would be better to write how to check the operation of memoization.
e.g.
require 'memoist' class Example extend Memoist def some_method puts "execute!" Time.now end memoize :some_method end example = Example.new example.some_method # execute! # => 2018-03-26 14:43:39 +0000 example.some_method # => 2018-03-26 14:43:39 +0000
I tried Usage and I thought that it would be better to write how to check the operation of memoization.
e.g.