Class: Fukuzatsu::FileReader
- Inherits:
-
Object
- Object
- Fukuzatsu::FileReader
- Defined in:
- lib/fukuzatsu/file_reader.rb
Defined Under Namespace
Classes: SourceFile
Instance Attribute Summary collapse
-
#path_to_files ⇒ Object
readonly
Returns the value of attribute path_to_files.
Instance Method Summary collapse
-
#initialize(path_to_files) ⇒ FileReader
constructor
A new instance of FileReader.
- #source_files ⇒ Object
Constructor Details
#initialize(path_to_files) ⇒ FileReader
Returns a new instance of FileReader.
6 7 8 |
# File 'lib/fukuzatsu/file_reader.rb', line 6 def initialize(path_to_files) @path_to_files = path_to_files end |
Instance Attribute Details
#path_to_files ⇒ Object (readonly)
Returns the value of attribute path_to_files.
4 5 6 |
# File 'lib/fukuzatsu/file_reader.rb', line 4 def path_to_files @path_to_files end |
Instance Method Details
#source_files ⇒ Object
10 11 12 |
# File 'lib/fukuzatsu/file_reader.rb', line 10 def source_files file_list.map{ |file_path| SourceFile.new(file_path) } end |