I’m a new user and I’m trying to follow the lesson book on https://learnrubythehardway.org.
I just can’t get Atom and PowerShell to do what Lesson 2 says:
Here’s how you use comments in Ruby:
1 # A comment, this is so you can read your program later.
2 # Anything after the # is ignored by ruby.
4 puts “I could have code like this.” # and the comment after is ignored
6 # You can also use a comment to “disable” or comment out a piece of code:
7 # puts “This won’t run.”
9 puts “This will run.”
The tutorial says that I should see the following output when I run the file in PowerShell:
$ ruby ex2.rb
I could have code like this.
This will run.
I just can’t get that output in PowerShell no matter what I do. I’d be grateful for any help!