Module: VersionGem::Epoch — Documentation by YARD 0.9.44

# Module: VersionGem::Epoch

Defined in:
  lib/version_gem/epoch.rb

## Overview

Support for Epoch Semantic Versioning
See: https://antfu.me/posts/epoch-semver

## Defined Under Namespace

Modules: OverloadApiForEpoch

## Constant Summary collapse

EPOCH_SIZE =

      1_000

## Class Method Summary collapse

- .extended(base) ⇒ Object

## Class Method Details

### .extended(base) ⇒ `Object`

Raises:

- (`Error`)

    13
    14
    15
    16
    17
    18
    # File 'lib/version_gem/epoch.rb', line 13

    def extended(base)
      raise Error, "VERSION must be defined before 'extend #{name}'" unless defined?(base::VERSION)

      base.extend(Api)
      base.extend(OverloadApiForEpoch)
    end