Class: SimpleCov::Parallel::Adapter::CircleCI::MethodStasher Private
- Inherits:
-
Struct
- Object
- Struct
- SimpleCov::Parallel::Adapter::CircleCI::MethodStasher
- Defined in:
- lib/simplecov/parallel/adapter/circleci.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #pop ⇒ Object private
- #stash ⇒ Object private
Instance Method Details
#pop ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
105 106 107 108 109 110 111 |
# File 'lib/simplecov/parallel/adapter/circleci.rb', line 105 def pop if klass.__send__(:method_defined?, method_name) klass.__send__(:undef_method, method_name) end klass.__send__(:define_method, method_name, @original_method) end |
#stash ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
100 101 102 103 |
# File 'lib/simplecov/parallel/adapter/circleci.rb', line 100 def stash @original_method = object.method(method_name) klass.__send__(:undef_method, method_name) end |