Module: NanDoc::SiteMethods

Included in:
Commands::Diff
Defined in:
lib/nandoc/support/site-methods.rb

Instance Method Summary collapse

Instance Method Details

#deduce_site_path_or_fail(args) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/nandoc/support/site-methods.rb', line 4

def deduce_site_path_or_fail args
  if args.any?
    deduce_site_path_from_args args
  else
    deduce_site_path_from_persistent_data
  end
end