Sha256: 570d184a2f7891ffbb81bbde0d6d54c42ce9c2ae4ffe8119543a2b611a55726e

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 Bytes

Contents

#######################################################
#
# ruboto/base.rb
#
# Code shared by other ruboto components.
#
#######################################################

require 'java'

# Create convenience method for top-level android package so we do not need to prefix with 'Java::'.
module Kernel
  def android
    JavaUtilities.get_package_module_dot_format('android')
  end

  alias :old_method_missing :method_missing
  def method_missing(method, *args, &block)
    return @ruboto_java_instance.send(method, *args, &block) if @ruboto_java_instance && @ruboto_java_instance.respond_to?(method)
    old_method_missing(method, *args, &block)
  end
end

java_import "android.R"
AndroidIds = JavaUtilities.get_proxy_class("android.R$id")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruboto-0.10.2 assets/src/ruboto/base.rb
ruboto-0.10.2.rc.0 assets/src/ruboto/base.rb
ruboto-0.10.1 assets/src/ruboto/base.rb
ruboto-0.10.0 assets/src/ruboto/base.rb
ruboto-0.10.0.rc.1 assets/src/ruboto/base.rb
ruboto-0.10.0.rc.0 assets/src/ruboto/base.rb