123456789_123456789_123456789_123456789_123456789_

Class: Profiler__::Wrapper

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/profiler.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(klass, mid) ⇒ Wrapper

[ GitHub ]

  
# File 'lib/profiler.rb', line 65

def initialize(klass, mid)
  super(klass, mid, nil)
  self.hash = Struct.instance_method(:hash).bind(self).call
end

Instance Attribute Details

#defined_class (rw)

[ GitHub ]

  
# File 'lib/profiler.rb', line 62

class Wrapper < Struct.new(:defined_class, :method_id, :hash)

#hash (rw)

[ GitHub ]

  
# File 'lib/profiler.rb', line 62

class Wrapper < Struct.new(:defined_class, :method_id, :hash)

#method_id (rw)

[ GitHub ]

  
# File 'lib/profiler.rb', line 62

class Wrapper < Struct.new(:defined_class, :method_id, :hash)

Instance Method Details

#inspect

Alias for #to_s.

[ GitHub ]

  
# File 'lib/profiler.rb', line 73

alias inspect to_s

#to_s Also known as: #inspect

[ GitHub ]

  
# File 'lib/profiler.rb', line 70

def to_s
  "#{defined_class.inspect}#".sub(/\A\#<Class:(.*)>#\z/, '\1.') << method_id.to_s
end