Sha256: e4afb134e26292f2ef252231c09bffe017d538c350269be8af7bf1da7100494d
Contents?: true
Size: 696 Bytes
Versions: 14
Compression:
Stored size: 696 Bytes
Contents
module Roger::Release::Processors class Base def initialize(options = {}) @options = {} @options.update(options) if options end def call(release, options = {}) raise ArgumentError, "Implement in subclass" end end def self.register(name, processor) raise ArgumentError, "Another processor has already claimed the name #{name.inspect}" if self.map.has_key?(name) raise ArgumentError, "Name must be a symbol" unless name.kind_of?(Symbol) self.map[name] = processor end def self.map @_map ||= {} end end require File.dirname(__FILE__) + "/processors/mockup" require File.dirname(__FILE__) + "/processors/url_relativizer"
Version data entries
14 entries across 14 versions & 1 rubygems