In Files

  • typeprof-0.12.0/lib/typeprof/utils.rb

Methods

Class/Module Index [+]

Quicksearch

TypeProf::Utils::StructuralEquality

Public Class Methods

included(klass) click to toggle source
 
               # File typeprof-0.12.0/lib/typeprof/utils.rb, line 9
def self.included(klass)
  klass.instance_eval do
    def new(*args)
      (@table ||= {})[[self] + args] ||= super
    end
  end
end
            

Public Instance Methods

new(*args) click to toggle source
 
               # File typeprof-0.12.0/lib/typeprof/utils.rb, line 11
def new(*args)
  (@table ||= {})[[self] + args] ||= super
end