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

Version Path
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/hashie-3.4.6/lib/hashie/extensions/ruby_version_check.rb
hashie-3.4.6 lib/hashie/extensions/ruby_version_check.rb
hashie-3.4.5 lib/hashie/extensions/ruby_version_check.rb