Closed koraktor closed 13 years ago
I needed to do this, so I just used the following:
@commands[:inner].run
Works perfectly, though a DSL method would probably make more sense.
This workaround won't work in version 0.4.0 though. You'll need something more complex due to application sandboxing.
@__app__.instance_eval { @commands[:inner].run }
Another reason why I want to implement this.
Added DSL method 'call' to delegate other commands
Closed by da5822bd41287d39e9804c4bf0bb7c7fde665534
Implement a simple DSL method to call a command from inside another command's code.