Sha256: 4cdc3311b8b6750160ef3e44e2c86a0daca4b7ddea21c5859d857d99e1e13895

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module Hem
  VERSION = '1.2.3'

  class << self
    def require_version *requirements
      req = Gem::Requirement.new(*requirements)
      if req.satisfied_by?(Gem::Version.new(VERSION))
        return
      end

      raise HemVersionError.new(requirements)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hem-1.2.3 lib/hem/version.rb