Class: Method

Inherits:
Object
  • Object
show all
Defined in:
lib/apps/objecttree.rb

Overview

This file is an application of the SWT module. JRubyUtils::RubyObjectBrowser may be used to show the contents of an object. –

The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/

Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific language governing rights and limitations
under the License.

The Initial Developer of the Original Code is Johannes Rudolph.
Portions created by the Initial Developer are Copyright (C) 2006
the Initial Developer. All Rights Reserved.

Contributor(s):
   Johannes Rudolph <[email protected]>

Instance Method Summary collapse

Instance Method Details

#nameObject

get the name of the method



23
24
25
26
27
# File 'lib/apps/objecttree.rb', line 23

def name
  method_field=Java::JavaClass.for_name('org.jruby.RubyMethod').declared_field('methodName')
  method_field.accessible=true
  Java::java_to_ruby(method_field.value(Java::ruby_to_java(self)))
end