Created
July 5, 2010 03:47
-
-
Save ujihisa/463974 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How do you write the semantically equivalent code in your favorite programming language? | |
if ARGV.shift == 'ujihisa' | |
class Ujihisa | |
def hi | |
'my name is ujihisa' | |
end | |
end | |
def the_klass | |
Ujihisa | |
end | |
else | |
class Ujm | |
def hi | |
'this is a pen' | |
end | |
end | |
def the_klass | |
Ujm | |
end | |
end | |
# main | |
p the_klass.new.hi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment