Sha256: ec91f09f96b56645fc047fc040bb78dddf908f875ea20475b6aa2e2d1003f48b
Contents?: true
Size: 320 Bytes
Versions: 3
Compression:
Stored size: 320 Bytes
Contents
module Hashie module Extensions module RubyVersionCheck def self.included(base) base.extend ClassMethods end module ClassMethods def with_minimum_ruby(version) yield if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new(version) end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems