Sha256: 27b12f0ca942d993a5c0400e6e039e553b4ed9a8fd614427d1384f8199bcb546
Contents?: true
Size: 365 Bytes
Versions: 3
Compression:
Stored size: 365 Bytes
Contents
module Daijobu module Scheme def self.get(name) case name when :marshal Daijobu::Scheme::Marshal.new when :json Daijobu::Scheme::JSON.new when :yaml Daijobu::Scheme::YAML.new when :eval Daijobu::Scheme::Eval.new else raise Daijobu::UnknownScheme end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sander6-daijobu-0.1.0 | lib/daijobu/scheme.rb |
sander6-daijobu-0.1.1 | lib/daijobu/scheme.rb |
sander6-daijobu-0.2.0 | lib/daijobu/scheme.rb |