Class: Probatio::Leaf
Instance Attribute Summary
Attributes inherited from Node
#block, #children, #opts, #parent, #path
Instance Method Summary collapse
Methods inherited from Node
#array_name, #depth, #filename, #full_name, #groups, #head, #initialize, #last_line, #line, #location, #map, #name, #path_and_line, #pending?, #root, #skip?, #test?, #to_s, #trail, #type
Constructor Details
This class inherits a constructor from Probatio::Node
Instance Method Details
#run(run_opts) ⇒ Object
624 625 626 627 628 629 630 631 632 633 634 635 636 637 |
# File 'lib/probatio.rb', line 624 def run(run_opts) return Probatio.despatch("#{type}_excluded", self) \ if exclude?(run_opts) return Probatio.despatch("#{type}_pending", self) \ if @opts[:pending] Probatio.despatch("#{type}_enter", self) @parent.instance_eval(&@block) Probatio.despatch("#{type}_leave", self) end |