Class: Hash

Inherits:
Object
  • Object
show all
Includes:
TSort
Defined in:
lib/otb_job_queue/core_extensions.rb

Overview

Extends the Hash class to use Tsort’s tsort method

Instance Method Summary collapse

Instance Method Details

#tsort_each_child(node, &block) ⇒ Object



10
11
12
# File 'lib/otb_job_queue/core_extensions.rb', line 10

def tsort_each_child(node, &block)
  fetch(node).each(&block)
end