normalian blog

Let's talk about Microsoft Azure, ASP.NET and Java!

rubyをちょっと弄ってみた

以下みたいな使い方は出来ないんですね、残念。

class AliasTest
 def self.hello
  "before"
 end
end
class AliasTest
 alias main_hello hello
  def self.hello
  "after"
 end
end