Sha256: f9c19a1d7a6bd07b842074a466898a6eac0bddfab664b9e18ca4456d4b49848f
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
require 'kakine/adapter/real' require 'kakine/adapter/mock' module Kakine class Adapter def self.set_option(dryrun) @@dryrun = dryrun end def self.get_instance @@adapter ||= if @@dryrun Kakine::Adapter::Mock.new else Kakine::Adapter::Real.new end end private def initialize end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kakine-0.3.0 | lib/kakine/adapter.rb |