Helper module including functions for results to handle software versions
Add version information for the Software used by this result
# File lib/miga/result/versions.rb, line 14 def add_versions(versions) versions.each { |k, v| self[:versions][k.to_sym] = v } end
Return the versions hash
# File lib/miga/result/versions.rb, line 8 def versions self[:versions] end
Get list of software and their versions as raw text (Markdown)
# File lib/miga/result/versions.rb, line 20 def versions_md versions.map { |k, v| "- #{k}: #{v}" }.join("\n") end