Class: MemprofilerPprof::Atfork::Handler
- Inherits:
-
Object
- Object
- MemprofilerPprof::Atfork::Handler
- Defined in:
- lib/ruby_memprofiler_pprof/atfork.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#stage ⇒ Object
Returns the value of attribute stage.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
11 12 13 |
# File 'lib/ruby_memprofiler_pprof/atfork.rb', line 11 def block @block end |
#stage ⇒ Object
Returns the value of attribute stage.
12 13 14 |
# File 'lib/ruby_memprofiler_pprof/atfork.rb', line 12 def stage @stage end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/ruby_memprofiler_pprof/atfork.rb', line 14 def call block.call end |
#remove! ⇒ Object
18 19 20 |
# File 'lib/ruby_memprofiler_pprof/atfork.rb', line 18 def remove! Atfork.at_fork_handlers.reject! { |h| h === self } end |