Sha256: 71b593982548c00b138420b597b4552bac4b0b6d1cac405c32c475546297bb3f
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
require 'singleton' module Kakine class Adapter @@adapter = nil include Singleton class << self def instance @@adapter ||= if Kakine::Option.dryrun? Kakine::Adapter::Mock.new else Kakine::Adapter::Real.new end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kakine-0.4.0 | lib/kakine/adapter.rb |