Class: Object

Inherits:
BasicObject
Defined in:
lib/jactive_support/core_ext/to_java.rb

Instance Method Summary collapse

Instance Method Details

#to_java(cls = nil) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/jactive_support/core_ext/to_java.rb', line 2

def to_java(cls=nil)
  if cls.is_a?(Symbol) && respond_to?("to_java_#{cls}")
    send "to_java_#{cls}"
  else
    super
  end
end