Sha256: c350fffaf6682a34f09ca357eb1f2879de17e9d2a2d13a56cb6cfc60cd61022a
Contents?: true
Size: 360 Bytes
Versions: 14
Compression:
Stored size: 360 Bytes
Contents
require 'hashie/extensions/ruby_version' module Hashie module Extensions module RubyVersionCheck def self.included(base) base.extend ClassMethods end module ClassMethods def with_minimum_ruby(version) yield if RubyVersion.new(RUBY_VERSION) >= RubyVersion.new(version) end end end end end
Version data entries
14 entries across 13 versions & 3 rubygems