Class: RSpec::Hermetic::Probe::Filesystem

Inherits:
Base
  • Object
show all
Defined in:
lib/rspec/hermetic/probe/filesystem.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #name

Constructor Details

This class inherits a constructor from RSpec::Hermetic::Probe::Base

Instance Method Details

#capture(_context) ⇒ Object



13
14
15
16
17
# File 'lib/rspec/hermetic/probe/filesystem.rb', line 13

def capture(_context)
  roots.each_with_object({}) do |root, values|
    scan_root(Pathname(root), values)
  end
end