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

Adding to the $: variable

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 199 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.
  • W Offline
    Whaat
    last edited by 21 Jul 2009, 18:24

    I am finding the following code very convenient:

    $;.push(some_sub_folder_in_plugins_that_contains_other_ruby_files)
    

    Then I can use the require command for any ruby files that are in my subfolder:

    require 'some_file_in_subfolder'
    require 'some_other_file_in_subfolder'
    etc.
    

    Are they any reasons why I shouldn't add directories to the $: variable?

    SketchUp Plugins for Professionals

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 21 Jul 2009, 21:43

      hm... that's an interesting question. That snippet looks very useful. Something SKX could use.

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

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

      Advertisement