Method: Inch::Config::Evaluation::Criteria#evaluate
- Defined in:
- lib/inch/config/evaluation.rb
#evaluate(object) ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/inch/config/evaluation.rb', line 51 def evaluate(object) @object = object instance_eval(&@block) # we are "deleting" the block/Proc here because it can't be # serialized by Marshal # TODO: find a nicer way to achieve this @block = nil end |