Infl is a tool to convert Ruby code into Python. Useful for those pesky programming exercises where you absolutely must turn in the code in python.
- Rubinius with Ruby 1.9 support
- Implicit
self
when accessing methods in current class- but only in current class context
- must be defined in file prior to being referenced
each
,map
,sort_by
- Some ruby standard library methods
- Implicit return
- Array range access
- A lot of other stuff
- Edit
infl
and change the shebang to point to your rbx installation infl hello.rb
produces a file in the same directory calledhello.py
. Or probably crashes if you have anything remotely interesting code in your input file.