Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/igrigorik/ruby2lolz
- Owner: igrigorik
- Created: 2008-12-11T05:04:55.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2009-12-12T21:28:51.000Z (about 15 years ago)
- Last Synced: 2024-10-21T02:07:14.771Z (3 months ago)
- Language: Ruby
- Homepage: http://www.igvita.com/2008/12/11/ruby-ast-for-fun-and-profit/
- Size: 90.8 KB
- Stars: 38
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
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_lolzputs {: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
endRuby2Lolz.translate(Simple, :add)
HOW DUZ I HAZ add [YR n1, YR n2]
(n1 + n2)
IF U SAY SO