SketchUp 2014 ruby code issue?
-
What's the correct Ruby code statement that I should replace in the code snippet (see attachment) for this Ruby to run in SU 2014?
TIA!
-
Remove the space before the (
-
@jim said:
Remove the space before the (
Rats! .....I knew about that space issue
Interestingly I never got an error message in SU 8. -
In pre Ruby2.0 you get a warning when loading such code, but it works.
In Ruby2.0 it just fails !
Never include a space between the method and the opening parenthesis that is enclosing its argument[s]... -
.. if you do, the interpreter wants to treat the expression as the entire first argument. But if it fails as a single expression, then it's a syntax error.
-
@tig said:
Never include a space between the method and the opening parenthesis that is enclosing its argument[s]...
I was going to tattoo that statement on my arm, but my Wife wont let me.

Regardless, I have often wondered what goes through the mind of those that write
computer languages. What fantasy world do they live in? It would not be very easy to read
a sentence without spaces between words, would it?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement