Cache subject visibility fixes #53

This commit is contained in:
Markus Schirp 2013-06-23 22:20:48 +02:00
parent f7808e9527
commit f5f66376f5

View file

@ -30,11 +30,14 @@ module Mutant
# Insert mutated node
#
# FIXME: Cache subject visibility in a better way! Ideally dont mutate it.
#
# @return [self]
#
# @api private
#
def insert
subject.public?
Loader::Eval.run(root, subject)
self
end