Class: ToolVersion::Detectors::Ruby
- Defined in:
- lib/tool_version/detectors/ruby.rb
Constant Summary collapse
- MAIN_FILE_PATTERN =
/.ruby-version/- TOOL_NAME =
"ruby".freeze
Instance Method Summary collapse
Methods inherited from Interface
Constructor Details
This class inherits a constructor from ToolVersion::Detectors::Interface
Instance Method Details
#versions ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/tool_version/detectors/ruby.rb', line 7 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 |