public
Description: Ruby to Lolcode translator, kthnxbai.
Homepage: http://www.igvita.com/2008/12/11/ruby-ast-for-fun-and-profit/
Clone URL: git://github.com/igrigorik/ruby2lolz.git
ruby2lolz / README
100644 38 lines (28 sloc) 0.605 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Ruby2Lolz translates Ruby code into LOLCODE (http://www.lolcode.com)
 
For example:
 
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
 
### OR ###
 
> Ruby2Lolz.translate({:nickname => [:ig, :igrigorik]}.inspect)
 
OH HAI
  I CAN HAS Nickname
     I CAN MANY HAZ
        AWSUM VAR
           ig
        KTHNX.
        AWSUM VAR
           igrigorik
        KTHNX.
    KTHNXBYE.
  KTHNX.
KTHNXBYE.
 
### OR ###
 
Put some Lolz into your API!
 - http://pastie.org/327494