Class: Filey::DataSources::FileSystem

Inherits:
DataSource
  • Object
show all
Defined in:
lib/filey-diff/data-sources/file_system.rb

Instance Method Summary collapse

Methods inherited from DataSource

#get_fileys

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