lib/tasks/doc.rb in dev-2.1.153 vs lib/tasks/doc.rb in dev-2.1.154
- old
+ new
@@ -1,10 +1,12 @@
-desc 'performs documentation commands'
-task :doc do Tasks.execute_task :doc;end
+# frozen_string_literal: true
+desc "performs documentation commands"
+task :doc do Tasks.execute_task :doc; end
+
class Doc < Array
- def update
- if(Command.exit_code('yard --version'))
- add_quiet 'yard doc - LICENSE' if File.exists?('README.md') && File.exists?('LICENSE')
- end
- end
-end
\ No newline at end of file
+ def update
+ if Command.exit_code("yard --version") && (File.exist?("README.md") && File.exist?("LICENSE"))
+ add_quiet "yard doc - LICENSE"
+ end
+ end
+end