class Doc < Array def update #cmd=Command.new ({ :input => 'yard --version', :ignore_failure => true}) #cmd.execute if(Command.exit_code('yard --version')) add 'yard doc - LICENSE' if File.exists?('README.md') && File.exists?('LICENSE') end end end