Method: CodeRunner::Run::FortranNamelist.print_doxygen_variable_documentation
- Defined in:
- lib/coderunner/fortran_namelist.rb
.print_doxygen_variable_documentation(variable = ) ⇒ Object Also known as: pdvd
1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 |
# File 'lib/coderunner/fortran_namelist.rb', line 1307 def self.print_doxygen_variable_documentation(variable=ARGV[2]) #rcp.variables_with_help.each do |var, help| #next if var #puts var, "\n", help.gsub(/*/, '-'), "\n" #end #["! <CRDOC #{variable}: CodeRunner generated doc for #{variable}: edit on the wiki!>\n", " !>" + (rcp.variables_with_help[variable.to_sym]||"").gsub( [ " !>" + (rcp.variables_with_help[variable.to_sym]||"").gsub( /\<math\>/, "\\f$").gsub( /\<\/math\>/, "\\f$").gsub( /^\s*\*\*/, " - ").gsub( /^\s*\#\#/, " #- ").gsub( /^\s*\#/, '#- ').gsub( /^\s*\*/, '- ').gsub( /[^\A]^/, "\n !!")].join(" ") #/[^\A]^/, "\n !!"), "\n ! </CRDOC #{variable}>"].join(" ") #/[^\A]^/, "\n !!"), "\n !!- NB, this is automatically generated documentation for an input parameter... see also the wiki page!", "\n ! </CRDOC #{variable}>"].join(" ") end |