Module: NanDoc::PathHelper
- Includes:
- TaskCommon
- Included in:
- CliCommandHelpers
- Defined in:
- lib/nandoc/support-modules.rb,
lib/nandoc/support-modules.rb
Instance Method Summary collapse
Methods included from TaskCommon
Instance Method Details
#assert_path(name, *paths) ⇒ Object
152 153 154 155 156 157 158 |
# File 'lib/nandoc/support-modules.rb', line 152 def assert_path name, *paths paths.each do |p| unless File.exist?(p) task_abort("#{name} does not exist: #{p}") end end end |