Module: Ruboto::API
- Extended by:
- Util::LogAction, Util::ScanInAPI
- Defined in:
- lib/ruboto/api.rb
Class Method Summary collapse
Methods included from Util::ScanInAPI
Methods included from Util::LogAction
Class Method Details
.api ⇒ Object
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.(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 |