Closed kenichi closed 8 years ago
I might be able to spend some cycles on this.
i'm dumb and forgot that *a
doesn't swallow blocks. doing this:
Angelo::Base::DSL.instance_methods.each do |bim|
define_method bim do |*a, &block|
@angelo_app.__send__ bim, *a, &block
end
end
makes it "work" but main only test still fails. 😕
i wound up using define_singleton_method
which made the main only test pass. let me know if that doesn't sound correct.
this commit breaks the "main" style feature added by @tommay because it makes
Forwardable
callmethod_defined?
which is not present onmain
.tried replacing the forward/def_delegators stuff in
lib/angelo/main.rb
with this but am running into errors i'm not understanding immediately: