Fix public method in jRuby