Last active
August 29, 2015 14:14
-
-
Save esehara/8b0b56f73b39eb49cc62 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
class String | |
def to_hash | |
{:as => self} | |
end | |
end | |
def method_missing(name, *args) | |
name.to_s + (args.join("")) | |
end | |
def 「 (*args) | |
puts ("「" + (args.join(""))).to_s | |
.split("。").join("。\n") | |
.split("』").join("』\n") | |
end | |
def ジャバ(*args) | |
method_missing(:Java, *args) | |
end | |
def Ruby(*args) | |
method_missing(:Scala, *args) | |
end | |
「 それはある日のことだった。雨音がなりひびく中、 ジャバ ジャバ と足音という音が、ひとけの居ない倉庫で鳴り響いている。この男は、誰かに追われているのだろうか。 後ろからは銃声。追われていた男の足元には、血が流れている。銃口からは煙があざ笑うかのように出ている。『だから、言っただろーー』男はあざ笑うかのように、その男を見下ろしていた。『最初から Ruby にしておけば良かったのさ』……そう言うと、二つの影は立ち去った」 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment