Sha256: 5cd17608edf09762b0d307f497b3dba5e7ae6d900a32ffd285a83933eca27372

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 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
      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

1 entries across 1 versions & 1 rubygems

Version Path
rautomation-0.1.0 lib/rautomation/adapter/helper.rb