Sha256: d5a52dd47af90ca98aba205ec2438a1e2d501327e47eb9747eda5a195fdbd4e0
Contents?: true
Size: 404 Bytes
Versions: 22
Compression:
Stored size: 404 Bytes
Contents
module IRT module RubyVersion class Version < Array include Comparable def initialize(version) replace version.split('.').map(&:to_i) end end extend self [:>, :>=, :<, :<=, :==, :between?].each do |m| define_method(m) do |*args| vers = args.map{|a| Version.new(a)} Version.new(RUBY_VERSION).send m, *vers end end end end
Version data entries
22 entries across 22 versions & 1 rubygems