Sha256: a5305c9130b33e9bcb3c7304d839aed438d3a1160157ed3f7903cda4c48909bd
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true require_relative 'ruby/version' module With module Version module Ruby def self.included(base) base.extend ClassMethods end module ClassMethods def with_minimum_ruby(version) if With::Version::Ruby::Version.new(RUBY_VERSION).release >= With::Version::Ruby::Version.new(version) yield end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
with-version-0.2.0 | lib/with-version/ruby.rb |