Method: MdSpell::CLI#files
- Defined in:
- lib/mdspell/cli.rb
#files ⇒ Object
List of markdown files from argument list.
59 60 61 62 63 64 65 66 67 |
# File 'lib/mdspell/cli.rb', line 59 def files cli_arguments.each_with_index do |filename, index| if Dir.exist?(filename) cli_arguments[index] = Dir["#{filename}/**/*.md"] end end cli_arguments.flatten! cli_arguments end |