Class: Pay::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- Pay::Engine
- Defined in:
- lib/pay/engine.rb
Instance Method Summary collapse
-
#version_matches?(current:, required:) ⇒ Boolean
Determines if a gem version matches requirements Used for verifying that dependencies are correct.
Instance Method Details
#version_matches?(current:, required:) ⇒ Boolean
Determines if a gem version matches requirements Used for verifying that dependencies are correct
51 52 53 |
# File 'lib/pay/engine.rb', line 51 def version_matches?(current:, required:) Gem::Dependency.new("gem", required).match? "gem", current end |