Skip to content

Instantly share code, notes, and snippets.

@DRMacIver
Created February 23, 2009 17:17
Show Gist options
  • Select an option

  • Save DRMacIver/69066 to your computer and use it in GitHub Desktop.

Select an option

Save DRMacIver/69066 to your computer and use it in GitHub Desktop.
require "java"
a = Object.new
CS = Java::JavaLang::CharSequence
class <<a
include Java::JavaLang::CharSequence
end
puts a.is_a? CS
Java::JavaLang::String.new("foo").content_equals(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment