Created
December 30, 2009 16:48
-
-
Save jruby/266174 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/jruby ➔ jirb | |
irb(main):001:0> class Object ; def blank?; length == 0; end; end | |
=> nil | |
irb(main):002:0> require 'java' | |
=> true | |
irb(main):003:0> a = java.util.ArrayList.new | |
=> [] | |
irb(main):004:0> a << 1 | |
=> [1] | |
irb(main):005:0> a.blank? | |
=> false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment