Class: Hash
Instance Method Summary collapse
Instance Method Details
#collect!(&block) ⇒ Object
42 43 44 |
# File 'lib/puppet/external/event-loop/better-definers.rb', line 42 def collect! (&block) replace Hash[*collect(&block).flatten] end |
#flatten ⇒ Object
46 47 48 |
# File 'lib/puppet/external/event-loop/better-definers.rb', line 46 def flatten to_a.flatten end |