Method: Rundoc::CodeCommand::FileUtil#filename
- Defined in:
- lib/rundoc/code_command/write.rb
#filename ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rundoc/code_command/write.rb', line 4 def filename files = Dir.glob(@filename) if files.length > 1 raise "Filename glob #{@filename.inspect} matched more than one file. Be more specific to only match one file. Matches:\n" + files.join(" \n") end files.first || @filename end |