Sha256: 2d8413384bdbf974dc8f8c9917511402b1e217520787c1264d471c0627ca5325
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
require "seed_gimmick/seed_io/base" require "seed_gimmick/seed_io/yaml_file" module SeedGimmick module SeedIO def self.get(seed_file) ext = File.extname(seed_file.to_s).presence || (raise SeedGimmickError) ext.sub!(/\A\./, "") ext = "yaml" if ext == "yml" const_get("#{ext.capitalize}File", false).new(seed_file) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seed_gimmick-0.0.1 | lib/seed_gimmick/seed_io.rb |