Sha256: 7d144558721a46741242967de22fbc63a7bce16f13bb90e2f2e772cb1da677ad

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

# encoding: utf-8

$last_driver = nil

# Invoke top level methods on last created Appium driver.
def self.method_missing method, *args, &block
  raise "driver is nil. called #{method}" if $last_driver == nil

  $last_driver.respond_to?(method) ?
    $last_driver.send( method, *args, &block ) :
    super
end

module Appium
  def self.add_to_path file, path=false
   path = path ? "../#{path}/" : '..'
   path = File.expand_path path, file

   $:.unshift path unless $:.include? path
  end

  add_to_path __FILE__

  require 'appium_lib/driver'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appium_lib-0.3.3 lib/appium_lib.rb
appium_lib-0.3.2 lib/appium_lib.rb
appium_lib-0.3.1 lib/appium_lib.rb