hashie/spec/support/ruby_version_check.rb

7 lines
191 B
Ruby

module RubyVersionCheck
def with_minimum_ruby(version)
yield if Hashie::Extensions::RubyVersion.new(RUBY_VERSION) >=
Hashie::Extensions::RubyVersion.new(version)
end
end