Class: SimpleCov::Parallel::Adapter::CircleCI::MethodStasher Private

Inherits:
Struct
  • Object
show all
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

Instance Method Details

#popObject

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

#stashObject

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