Registry / utility / ruby-version

ruby-version

JSON →
library1.0.3rbrubygemsunverified

Provides a RubyVersion class with a DSL for checking the current Ruby version.

gem install ruby_version
INSTALL
IMPORT
SIG · RUBY-VERSION
R
ruby-version
utilityrubyv1.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RubyVersion
require 'ruby_version'

Check if Ruby version meets a requirement

require 'ruby_version' RubyVersion.check('>= 2.7')
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
2
Resources
ruby-version — gem install ruby-version · libregistry