Module: Rubeus::Util::JavaMethodName

Defined in:
lib/rubeus/util/java_method_name.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.enableObject



6
7
8
9
10
11
12
13
# File 'lib/rubeus/util/java_method_name.rb', line 6

def self.enable
  Object.module_eval do
    def java_methods
      self.class.java_methods
    end
  end
  Module.send(:include, self)
end

Instance Method Details

#java_method_objectsObject



15
16
17
18
# File 'lib/rubeus/util/java_method_name.rb', line 15

def java_method_objects
  return [] unless respond_to?(:java_class) && java_class
  java_class.java_instance_methods
end