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. 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?
Advertisement


 
                             
                             
                             
                             
                             
                             
                            