Sha256: 8f4468be3c496059c06c10f508c5de1ccaaf80b571bb59c7852b8d2abb35d361

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require_relative "error"
require_relative "api"

module VersionGem
  # This is a very *basic* version parser. Others could be built based on this pattern!
  module Basic
    class << self
      def extended(base)
        raise Error, "VERSION must be defined before 'extend #{name}'" unless defined?(base::VERSION)

        base.extend(Api)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/version_gem-1.1.4/lib/version_gem/basic.rb
version_gem-1.1.4 lib/version_gem/basic.rb
version_gem-1.1.3 lib/version_gem/basic.rb