module Semverve::Formats
Format handlers for parsing, replacing, and generating version files.
Public Class Methods
Source
# File lib/semverve/formats.rb, line 16 def self.fetch(name) case name.to_sym when :module ModuleConstants.new when :simple SimpleString.new else raise Error, "Unknown version format #{name.inspect}. Use :module or :simple." end end
Returns the handler for a configured version-file format.
@param [Symbol, String] name
@return [Semverve::Formats::ModuleConstants, Semverve::Formats::SimpleString]