Defining the jruby? method

This defines the jruby? method used in d4e5693d but never defined. This
was discussed in #1003.
Merge pull request #1028 from ekampp/master

Defining the missing jruby? method