File: ruby_version_check.rb

package info (click to toggle)
ruby-hashie 5.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 884 kB
  • sloc: ruby: 7,049; sh: 8; makefile: 6
file content (6 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
module RubyVersionCheck
  def with_minimum_ruby(version)
    yield if Hashie::Extensions::RubyVersion.new(RUBY_VERSION) >=
             Hashie::Extensions::RubyVersion.new(version)
  end
end