JRuby

Calling dynamically defined method throws Java::JavaLang::NullPointerException or returns nil without executing method body