module TypeProf::Utils::StructuralEquality

Public Class Methods

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

Public Instance Methods

new(*args) click to toggle source
Calls superclass method
# File typeprof-0.21.7/lib/typeprof/utils.rb, line 11
def new(*args)
  (Thread.current[:table] ||= {})[[self] + args] ||= super
end