Wonder if you can write Ruby in Chinese
> Was wondering after recent ruby meetup if you could write ruby in
Chinese. Seems you can only problem being you have to name Classes
beginning with a Capital letter.
So I ended up doing O? so that the name began with a capital.
(http://www.meetup.com/Norwich-Ruby-User-Group-NRUG/)
"class name needs to begin with a CONSTANT so uppercase"
class O目
def 时
puts "模棱两可"+"夏天"
end
end
a = O目.new
a.时
On a Mac at least you can name that file as "时". All those characters are
just nonsense Pinyin characters. Google translates 模棱两可夏天 as "Ambiguous
summer" :) , probably not entirely accurate but hopefully its not
something too offensive.(http://www.meetup.com/Norwich-Ruby-User-Group-NRUG/)
/ Adam