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
|
Defined in: | lib/profiler.rb |
Class Method Summary
- .new(klass, mid) ⇒ Wrapper constructor
Instance Attribute Summary
- #defined_class rw
- #hash rw
- #method_id rw
Instance Method Summary
Constructor Details
.new(klass, mid) ⇒ Wrapper
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.
# 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