Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/igrigorik/ruby2lolz

Ruby to Lolcode translator, kthnxbai.
https://github.com/igrigorik/ruby2lolz

Last synced: about 2 months ago
JSON representation

Ruby to Lolcode translator, kthnxbai.

Awesome Lists containing this project

README

        

Ruby2Lolz translates Ruby code into LOLCODE (http://www.lolcode.com)
- http://www.igvita.com/2008/12/11/ruby-ast-for-fun-and-profit/

== Translating Ruby Hash & Array:
require 'ruby2lolz'
# adds Hash.to_lolz, and Array.to_lolz

puts {:nickname => [:ig, :igrigorik]}.to_lolz

OH HAI
I CAN HAS Nickname
I CAN MANY HAZ
AWSUM VAR
ig
KTHNX.
AWSUM VAR
igrigorik
KTHNX.
KTHNXBYE.
KTHNX.
KTHNXBYE.

Put some Lolz into your API
- http://pastie.org/327494

== Translating a class:

class Simple
def add(n1, n2)
return n1 + n2
end
end

Ruby2Lolz.translate(Simple, :add)

HOW DUZ I HAZ add [YR n1, YR n2]
(n1 + n2)
IF U SAY SO