Module: RD::Filter::FileInclude
- Defined in:
- lib/rd2odt/rdtool/rd/filter.rb
Class Method Summary collapse
Class Method Details
.find_file(file, part) ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/rd2odt/rdtool/rd/filter.rb', line 27 def find_file(file, part) for dir in part.tree.include_path begin return open(dir + "/" + file) rescue next end end nil end |