· software
Ruby 예외 처리와 정규 표현식
예외 처리: Ruby에서 예외를 발생시키고 처리하는 기본적인 방법을 살펴봅니다. ```ruby def raise_exception puts 'I am before the raise.' raise 'An error has occured' puts 'I am after the raise.' end ``` 위 코드를 실행하면…
예외 처리: Ruby에서 예외를 발생시키고 처리하는 기본적인 방법을 살펴봅니다. ```ruby def raise_exception puts 'I am before the raise.' raise 'An error has occured' puts 'I am after the raise.' end ``` 위 코드를 실행하면…