I tried using the word first and the word firstl like she did
this is what I get
true
first *[30,10,0]
Error: #<NoMethodError: undefined method `first’ for main:Object>
:in `'
SketchUp:1:in `eval'
firstl *[30,10,0]
Error: #<NoMethodError: undefined method `firstl’ for main:Object>
:in `'
SketchUp:1:in `eval'
even when I tried putting a space after the * I got this
first * [30,10,0]
Error: #<NameError: undefined local variable or method `first’ for main:Object>
It looks like you used a multiplication sign, " * ", instead of an equal sign, " = ".
Here’s what it looks like when a multiplication sign is used:
Here’s what it looks like if an operator is left out:
You need to use an " = " to assign the values to the variables.
Fix the syntax and it will work.
Also, in the future, don’t use images to show your code. Instead, use a triple back tick, " ``` " (on the tilde key, upper left of keyboard). Just put the back ticks in before and after your code and it will show like the following:
I never dreamed that the video was showing the -= sign, I thought it was using the * sign. My video was blurry thought. I am using both Ruby Console and Ruby Code Editor
Thank you for the reminder about the video quality setting on YouTube. But in this instance the problem was I downloaded the video at a low resolution. I am going to have to download these types of videos at higher resolution. I will be using NotePad when writing rb files.
I’m sorry, but this is not a full featured stand alone coder editor application.
It is web dialog that simulates a code editor for learning and coding small snippets.
I don’t have time nor desire to go into all the pros and cons.