3
종료 또는 종료를 사용하여 irb를 종료하는 것과 다른 점이 있습니까?irb에서 종료와 종료의 차이점은 무엇입니까?
예컨대, 이러한 기능적으로 동일하다 :
irb(main):001:0> quit
및
irb(main):001:0> exit
종료 또는 종료를 사용하여 irb를 종료하는 것과 다른 점이 있습니까?irb에서 종료와 종료의 차이점은 무엇입니까?
예컨대, 이러한 기능적으로 동일하다 :
irb(main):001:0> quit
및
irb(main):001:0> exit
그것은 그렇게 보인다.
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
멋진 디버깅 방법에 대한 TIL –
다른 옵션이 필요한 경우 'irb_exit'도 있습니다. – roippi