bar = 0;
p defined?(bar)


결과

"local-variable"




bar = 0;
p defined?(foo)


결과

nil


'DEV > Ruby' 카테고리의 다른 글

루비 라이브러리, 루비젬 라이브러리  (0) 2019.07.24