No emit method
revskill10 opened this issue · 3 comments
revskill10 commented
I create a class
class Model
def push
emit(:pushed)
end
end
But when running, it says there is no method :emit.
Please explain more here.
steveklabnik commented
Did you
require 'frappuccino'
revskill10 commented
Yes. I've required the gem.
The error stay the same.
shilpi230 commented
U can't directly access it use this
c = Model.new
stream = Frappuccino::Stream.new(c)
after that it won't say.