Sha256: 1cf35290058017677d6fab82de2df9d7899cef4f4034dc562fc62b182f4b38da

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 Bytes

Contents

module RAutomation
  module Adapter
    autoload :Autoit, File.dirname(__FILE__) + "/autoit.rb"
    autoload :Ffi, File.dirname(__FILE__) + "/ffi.rb"

    module Helper
      extend self

      # @private
      # Retrieves default {Adapter} for the current platform.
      def default_adapter
        case RUBY_PLATFORM
          when /mswin|msys|mingw32/
            :ffi
          else
            raise "unsupported platform for RAutomation: #{RUBY_PLATFORM}"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rautomation-0.3.0 lib/rautomation/adapter/helper.rb
rautomation-0.2.1 lib/rautomation/adapter/helper.rb
rautomation-0.2.0 lib/rautomation/adapter/helper.rb