π‘ LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
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