• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

SketchUp 2014 ruby code issue?

Scheduled Pinned Locked Moved Developers' Forum
6 Posts 4 Posters 322 Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    tomot
    last edited by tomot 8 Mar 2014, 16:41

    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!

    [my plugins](http://thingsvirtual.blogspot.ca/)
    tomot

    1 Reply Last reply Reply Quote 0
    • J Offline
      Jim
      last edited by 8 Mar 2014, 16:50

      Remove the space before the (

      Hi

      1 Reply Last reply Reply Quote 0
      • T Offline
        tomot
        last edited by 8 Mar 2014, 18:20

        @jim said:

        Remove the space before the (

        Rats! .....I knew about that space issue 😳 Interestingly I never got an error message in SU 8.

        [my plugins](http://thingsvirtual.blogspot.ca/)
        tomot

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 8 Mar 2014, 18:27

          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]...

          TIG

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dan Rathbun
            last edited by 8 Mar 2014, 21:25

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

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • T Offline
              tomot
              last edited by 8 Mar 2014, 21:41

              @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?

              [my plugins](http://thingsvirtual.blogspot.ca/)
              tomot

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement