123456789_123456789_123456789_123456789_123456789_

Module: TypeProf::Utils::StructuralEquality

Class Method Summary

Class Method Details

.included(klass)

[ GitHub ]

  
# File 'lib/typeprof/utils.rb', line 9

def self.included(klass)
  klass.instance_eval do
    def new(*args)
      (@table ||= {})[[self] + args] ||= super
    end
  end
end