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