Module: Spreewald::Comparison
- Defined in:
- lib/spreewald_support/comparison.rb
Class Method Summary collapse
Class Method Details
.compare_versions(gem_version, operator, compare_to) ⇒ Object
4 5 6 |
# File 'lib/spreewald_support/comparison.rb', line 4 def self.compare_versions(gem_version, operator, compare_to) Gem::Version.new(gem_version).send(operator, Gem::Version.new(compare_to)) end |