Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method names prefix #2

Open
shokai opened this issue Nov 7, 2012 · 1 comment
Open

method names prefix #2

shokai opened this issue Nov 7, 2012 · 1 comment

Comments

@shokai
Copy link
Owner

shokai commented Nov 7, 2012

solution for method names "on" and "emit" conflict.

EventEmitter::prefix = '___'

class Foo
  include EventEmitter
end

foo = Foo.new

prefix was set

foo.___on(type, listener)
foo.___emit(type, data)
@yordis
Copy link

yordis commented Jun 23, 2016

@shokai what's this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants