Skip to content

Conversation

@icwizardmonke
Copy link
Owner

Kernel#gets is not a method to read from stdin.

Use $stdin.gets

gets reads from argument input

Screenshot shows the current code fails to run because gets tries to parse argument input ARGV

image

Change to $stdin.gets solves this problem

Kernel#gets is not a method to read from stdin.

Use $stdin.gets

Signed-off-by: icwizardmonke <[email protected]>
@icwizardmonke icwizardmonke merged commit 5df2afc into main Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants