Module: EndOfLife::VersionDetectors
- Extended by:
- VersionDetectors
- Included in:
- VersionDetectors
- Defined in:
- lib/end_of_life/version_detectors.rb,
lib/end_of_life/version_detectors/ruby.rb,
lib/end_of_life/version_detectors/rails.rb
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#for_product(product) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/end_of_life/version_detectors.rb', line 5 def for_product(product) detector_class = "#{self}::#{camelize(product.to_s)}" const_get(detector_class) rescue NameError raise ArgumentError, "Undefined version detector for product: #{product}" end |