This is a very basic version parser. Others could be built based on this pattern!
Raises:
10 11 12 13 14
# File 'lib/version_gem/basic.rb', line 10 def extended(base) raise Error, "VERSION must be defined before 'extend #{name}'" unless defined?(base::VERSION) base.extend(Api) end