Sha256: 21cad2005c2847dd33c660f1c8aa79ef72ceded37fc9680b860ad92d5a9bd346
Contents?: true
Size: 519 Bytes
Versions: 6
Compression:
Stored size: 519 Bytes
Contents
module Isomer::Sources def self.factory(type, parameters=[], options={}) case type when :test Isomer::Sources::Test.new(parameters, options) when :yaml Isomer::Sources::Yaml.new(parameters, options) when :environment Isomer::Sources::Environment.new(parameters, options) else raise "Unknown source type #{source_type}" end end end require_relative 'sources/base' require_relative 'sources/test' require_relative 'sources/yaml' require_relative 'sources/environment'
Version data entries
6 entries across 6 versions & 1 rubygems