Closed ismith closed 7 years ago
This bug is because the dsl is overzealous in calling define_method(:on_receive).
doh! good catch. see inline comments. also, we should also apply this fix to all similar constructs in the dsls.
@colinsurprenant Any thoughts on the current state of this PR?
@colinsurprenant poke?
@colinsurprenant repoke?
I'm going to close this as inactive, two years later; if someone wants to resurrect the code, feel free.
directly. Prior to this fix, doing this will result in "SystemStackError: stack level too deep".
Example module RedStorm module Examples class SplitSentenceBolt < DSL::Bolt def on_receive(tuple) tuple[0].split(' ').map{|w| [w]} end end end end