Skip to content

jimweirich/rava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rava — Ruby for Java Programmers

Switching from Java to Ruby can be a big change for programmers. The
Rava library is designed to make that transition easier.

Quote

“I can write Java code in any language” — Anon

Installation

Install via gems:

  sudo gem install jimweirich-rava

Usage

  require 'rava'

Easy Console I/O

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")

Creating new objects

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

Using Java CamelCase on Ruby methods

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

Comming Soon …

Sproing — A Dependency Injection Framework for Ruby!

About

Ruby Code for Java Developers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages