Sha256: 8fdb803cd40a3778a5ce7329d9c2583052d6378bc336eaca748e8e0b2b6858c8

Contents?: true

Size: 259 Bytes

Versions: 7

Compression:

Stored size: 259 Bytes

Contents

module Kakine
  module Adapter
    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

7 entries across 7 versions & 1 rubygems

Version Path
kakine-0.7.0 lib/kakine/adapter.rb
kakine-0.6.5 lib/kakine/adapter.rb
kakine-0.6.4 lib/kakine/adapter.rb
kakine-0.6.2 lib/kakine/adapter.rb
kakine-0.6.1 lib/kakine/adapter.rb
kakine-0.6.0 lib/kakine/adapter.rb
kakine-0.5.0 lib/kakine/adapter.rb