Sha256: ac3f30262f449b3aa888ffece625b323144db8e77cfe5dad7bfa5d82f078368d

Contents?: true

Size: 160 Bytes

Versions: 10

Compression:

Stored size: 160 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jactive_support-2.1.2 lib/jactive_support/core_ext/to_java.rb
jactive_support-3.0.0 lib/jactive_support/core_ext/to_java.rb
jactive_support-3.0.0.pre2 lib/jactive_support/core_ext/to_java.rb
jactive_support-3.0.0.pre1 lib/jactive_support/core_ext/to_java.rb
jactive_support-2.1.1 lib/jactive_support/core_ext/to_java.rb
jactive_support-2.1.0 lib/jactive_support/core_ext/to_java.rb
jactive_support-2.0.0 lib/jactive_support/core_ext/to_java.rb
jactive_support-1.0.2 lib/jactive_support/core_ext/to_java.rb
jactive_support-1.0.1-universal-java-1.6 lib/jactive_support/core_ext/to_java.rb
jactive_support-1.0.0-universal-java-1.6 lib/jactive_support/core_ext/to_java.rb