Class: AbcSize::RubyVersion::Detector
- Inherits:
-
Object
- Object
- AbcSize::RubyVersion::Detector
- Includes:
- Common
- Defined in:
- lib/abc_size/ruby_version/detector.rb
Overview
Ruby version detector
Constant Summary collapse
- RUBY_VERSION_FILENAME =
'.ruby-version'
Instance Method Summary collapse
Methods included from Common
#return_supported_version_if_version_supported
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/abc_size/ruby_version/detector.rb', line 11 def call file_version = return_file_version return_supported_version_if_version_supported(file_version) rescue Errno::ENOENT, EmptyFileError, UnknownFormatError => e rescue_detection_error(e) end |