UPDATED example :
java_import 'java.util.jar.Attributes'
class JavaImportScope
def do_import # self.do_import works
java_import 'org.xml.sax.Attributes'
end
def self.attributes
Attributes
end
end
JavaImportScope.new.do_import
puts JavaImportScope.attributes # org.xml.sax.Attributes
puts Attributes # also org.xml.sax.Attributes (with a warning)
will try to come up with a detailed spec for the feature