2015-02-02 8 views

답변

8

그것은 그렇게 보인다.

method(:quit).owner #=> IRB::ExtendCommandBundle 
method(:exit).owner #=> IRB::ExtendCommandBundle 
method(:exit).source_location 
#=> ["/usr/local/lib/ruby/2.2.0/irb/extend-command.rb", 28] 
method(:quit).source_location 
#=> ["/usr/local/lib/ruby/2.2.0/irb/extend-command.rb", 28] 
method(:exit) == method(:quit) #=> true 
+1

멋진 디버깅 방법에 대한 TIL –