digital-fabric/modulation

#import in Rake tasks doesn't work

noteflakes opened this issue · 0 comments

Rake extends the main object with its DSL module, which includes an #import method, causing imports to not work if called in the context of the main object, which will happen when using require to load a source file.

One solution would be to detect if rake is loaded, and if it is, alias its #import method to something else (e.g. #rake_import), then redefine the #import method.