Defining the jruby? method

This defines the jruby? method used in d4e5693d but never defined. This
was discussed in #1003.