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

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/hashie-3.6.0/lib/hashie/extensions/ruby_version_check.rb
hashie-4.0.0 lib/hashie/extensions/ruby_version_check.rb
hashie-3.6.0 lib/hashie/extensions/ruby_version_check.rb
tdiary-5.0.8 vendor/bundle/gems/hashie-3.5.7/lib/hashie/extensions/ruby_version_check.rb
hashie-3.5.7 lib/hashie/extensions/ruby_version_check.rb
hashie-3.5.6 lib/hashie/extensions/ruby_version_check.rb
tdiary-5.0.5 vendor/bundle/gems/hashie-3.5.5/lib/hashie/extensions/ruby_version_check.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/hashie-3.5.5/lib/hashie/extensions/ruby_version_check.rb
tdiary-5.0.4 vendor/bundle/gems/hashie-3.5.5/lib/hashie/extensions/ruby_version_check.rb
hashie-3.5.5 lib/hashie/extensions/ruby_version_check.rb
hashie-3.5.4 lib/hashie/extensions/ruby_version_check.rb
hashie-3.5.3 lib/hashie/extensions/ruby_version_check.rb
hashie-3.5.2 lib/hashie/extensions/ruby_version_check.rb
hashie-3.5.1 lib/hashie/extensions/ruby_version_check.rb