Class: Filey::DataSources::FileSystem
- Inherits:
-
DataSource
- Object
- DataSource
- Filey::DataSources::FileSystem
- Defined in:
- lib/filey-diff/data-sources/file_system.rb
Instance Method Summary collapse
-
#initialize(root_directory, &block) ⇒ FileSystem
constructor
A new instance of FileSystem.
Methods inherited from DataSource
Constructor Details
#initialize(root_directory, &block) ⇒ FileSystem
Returns a new instance of FileSystem.
6 7 8 9 |
# File 'lib/filey-diff/data-sources/file_system.rb', line 6 def initialize(root_directory, &block) @root_directory = root_directory @when_filey_loaded = lambda { |filey| block.call filey } if block end |