RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

How to compare version strings in Ruby

Sometimes you need to support different versions of an API inside your ruby code. And, sometime, you will need to compare version strings in order to make a feature available. But how do we compare if a version is greater than another one? It’s simple: use Gem::Version!

https://medium.com/@extendsmymind/how-to-compare-version-strings-in-ruby-ced0916a4b71

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in