Module: Ruboto::API

Extended by:
Util::LogAction, Util::ScanInAPI
Defined in:
lib/ruboto/api.rb

Class Method Summary collapse

Methods included from Util::ScanInAPI

scan_in_api

Methods included from Util::LogAction

log_action

Class Method Details

.apiObject



10
11
12
13
14
15
16
17
18
# File 'lib/ruboto/api.rb', line 10

def api
  @api ||= begin
    log_action("Loading Android API") do
      api = File.expand_path(Ruboto::GEM_ROOT + "/lib/java_class_gen/android_api.xml")
      abort "cannot find android_api.xml to extract info from it." unless  File.exists? api
      scan_in_api(File.read(api))["api"][0]
    end
  end
end