Class: ToolVersion::Detectors::Asdf
- Defined in:
- lib/tool_version/detectors/asdf.rb
Constant Summary collapse
- MAIN_FILE_PATTERN =
/.tool-version/
Instance Method Summary collapse
Methods inherited from Interface
Constructor Details
This class inherits a constructor from ToolVersion::Detectors::Interface
Instance Method Details
#versions ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tool_version/detectors/asdf.rb', line 6 def versions relevant_files.each do |file_path, file_content| parse_file_content(file_content).each do |extracted_version| add_version( extracted_version[:name], extracted_version[:version], file_path ) end end @versions end |