Sha256: 824fe019d7eb7cadee97c1386d6b48e40c80df230ccca0dca0e338113c1bfd67
Contents?: true
Size: 370 Bytes
Versions: 6
Compression:
Stored size: 370 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 def self.extended(base) raise Error, "VERSION must be defined before 'extend #{name}'" unless defined?(base::VERSION) base.extend Api end end end
Version data entries
6 entries across 6 versions & 1 rubygems