ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
Adding to the $: variable
-
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?
-
hm... that's an interesting question. That snippet looks very useful. Something SKX could use.
Advertisement