Switching from Java to Ruby can be a big change for programmers. The
Rava library is designed to make that transition easier.
“I can write Java code in any language” — Anon
Install via gems:
sudo gem install jimweirich-rava
require 'rava'
Who can remember puts vs. print and all the other subtle
differences in Ruby I/O functions. Real programmers aren’t afraid of
a little extra typing to get reliable I/O.
In Rava, you can do:
System.out.println("A Message") System.err.println("An Error Message")
Java programmers have a hard time remember that the new method is a
class method on an object class. Instead of writing:
SomeThing.new
Java programmers would much rather use:
new SomeThing
Java programmers are use to using camelcase for all method names.
This underscore business is so baroque. Rava allows you to call
methods using camel case.
In other words, you can do this:
obj.someMethod
rather than:
obj.some_method
Sproing — A Dependency Injection Framework for Ruby!