How to creata Mixin that memoizes all instance methods

后端 未结 0 1476
南笙
南笙 2021-02-05 02:32

I\'m trying to create a mixin that memoizes all instance methods:

# frozen_string_literal: true

module MemoizeAllInstanceMethods
  extend Memoist

  def self.ext         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题