π’ PlaceMaker | 25% off for February including new Google Earth data imports!
Learn more
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