sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Question on =begin and =end

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 245 Views 2 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.
    • L Offline
      ladyquestio
      last edited by

      I ran across a ruby that has these used in it.
      am I correct in understanding it is the same as using the rem ## except it remarks out anything between them?
      like this

      =begin
      none of this would be processed
      regardless of what is inside
      the processing ruby
      =end

      Coding continues...

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        Correct, Ruby does not process the lines between. They are typically used for block comments. And if used, the equal sign must be the first character in the line (no whitespace.)

        Hi

        1 Reply Last reply Reply Quote 0
        • L Offline
          ladyquestio
          last edited by

          @jim said:

          Correct, Ruby does not process the lines between. They are typically used for block comments. And if used, the equal sign must be the first character in the line (no whitespace.)

          Thank you for the answer.
          that helps me understand a bit more of ruby scripting

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

          Advertisement