0.01
No commit activity in last 3 years
No release in over 3 years
Ruby to Lolcode translator, kthnxbai.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Ruby2Lolz translates Ruby code into LOLCODE (www.lolcode.com)

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

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