I understand the risks involved… it’s for quick and easy tests. Also, the intention is to surround my code within my own modules, and if possible, to see how it works directly from the Ruby Code Editor… without copying and pasting endlessly from one place to anthoer…
@DanRathbun , the “anonymous module around the script code”, in what situations is that done?
If I were to run the code as though it were in the TOPLEVEL_BINDING, will it work exactly the same as if it’s being loaded from the plugins folder!?
When I reference to file locations using FILE , I believe it reacts differently depending on in which console I’m running the code from… or which folder the file is located at… I understand that, but I’m wondering what would be the best way to test run code as close as possible to the end product… (in the plugins folder).
In the mean time I started working now like you guys suggested, with an outside editor - I find “Visual Studio Code” to be nice and comfortable (though a bit slow to start) and copying and pasting snippets to Ruby Console+ or directly to the Ruby Console…
It’s a bit of a nag, cause I’m constantly testing little trivial changes until I understand what the * I’m doing… but it’s not too bad I guess.
Using the ‘Sketchup Plugins Manager’ I’ve made a preset with a minimal set of plugins loaded, so reloading Sketchup is a lot quicker now… very helpful.