The Ruby2Java compiler inspects the *runtime* definition of classes to produce a normal-looking Java class. All metaprogrammed methods are reflected on the Java class, as are runtime modifications to those methods.
Thomas E. Enebo, Charles O. Nutter, Sergio RodrÃÂguez Arbeo
gem "ruby2java", "~> 0.0.1"