Class: PDF::Storycards::TextFileFilter
- Inherits:
-
Object
- Object
- PDF::Storycards::TextFileFilter
- Includes:
- Enumerable
- Defined in:
- lib/pdf/storycards/text_file_filter.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(*paths) ⇒ TextFileFilter
constructor
A new instance of TextFileFilter.
Constructor Details
#initialize(*paths) ⇒ TextFileFilter
Returns a new instance of TextFileFilter.
6 7 8 9 10 |
# File 'lib/pdf/storycards/text_file_filter.rb', line 6 def initialize(*paths) @paths = paths @text_files = paths.select{|path| nonbinary?(path)} @text_files.map!{ |path| Pathname.new(path).cleanpath.to_s } end |
Instance Method Details
#each(&block) ⇒ Object
12 13 14 |
# File 'lib/pdf/storycards/text_file_filter.rb', line 12 def each(&block) @text_files.each(&block) end |