I need my JRuby method to recieve a report of what is going on in a Java method and act accordingly:
def my_long_running_method
# ... do stuff ...
jObject.count_all_disk_files do |number_of_files|
stream.write "#{number_of_files} files found so far."
end
# ... do more stuff ...
end
I saw this question but I couldn't understand what I need to do.
I've known Ruby for a long time and a little of Java. This project needs to be JRuby because of old Java code that needs to be integrated with new Ruby code.