Repl stops right after clicking 'Run'

My repl ( stops right after I run it and there are no error messages displayed in the console.

What am I doing wrong?

Disclaimer: I never used ruby until I see this and quickly went to the documentation for a quick look of how it works, if this is not how ruby works ignore me and sorry for the inconvenience.

I think it is because you defined the function but not calling it, so the compiler think you are declaring a definition and end it, not running the definition stuff

Add “scraper” or “scraper()” at the end of the code after everything I guess

Short documentation about def: Ruby in Twenty Minutes


Oh wow, I’m so stupid. Of course :smile: Thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.