Sha256: d151e1207efc87b314515792ea41e8482ecf66a5ba9e1aacc9c9bf03ff2a0a63
Contents?: true
Size: 593 Bytes
Versions: 14
Compression:
Stored size: 593 Bytes
Contents
require_relative 'executed_after_children' module DeepCover module Node::Mixin module CheckCompletion def check_completion(outer:'(%{node})', inner:'(%{node})') has_tracker :completion include ExecutedAfterChildren alias_method :flow_completion_count, :completion_tracker_hits pre, post = outer.split('%{node}') # The local=local is to avoid Ruby warning about "Possible use of value in void context" define_method(:rewrite) { "#{pre}(%{local}=#{inner};%{completion_tracker};%{local}=%{local})#{post}" } end end end end
Version data entries
14 entries across 14 versions & 1 rubygems