<div dir="ltr">I found the solution. I need use a closure.<div>I updated the gist: <a href="https://gist.github.com/brunomacabeusbr/eea343bb9119b96eed3393e41dcda0c9">https://gist.github.com/brunomacabeusbr/eea343bb9119b96eed3393e41dcda0c9</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-13 1:38 GMT-03:00 Bruno Macabeus <span dir="ltr"><<a href="mailto:bruno.macabeus@gmail.com" target="_blank">bruno.macabeus@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I wrote a gist to list all classes that subscribers a protocol: <a href="https://gist.github.com/brunomacabeusbr/eea343bb9119b96eed3393e41dcda0c9" target="_blank">https://gist.github.<wbr>com/brunomacabeusbr/eea343bb91<wbr>19b96eed3393e41dcda0c9</a></div><div>It work, but, I could not pass a protocol as parameter, then, I need wrote one function each time I <span id="m_-369412780466805480m_-6097948805544639014m_-7999954819635705759goog_641569212"></span>need <span id="m_-369412780466805480m_-6097948805544639014m_-7999954819635705759goog_641569213"></span>to list class from different protocol.</div><div><a href="http://stackoverflow.com/a/27162499/3440266" target="_blank">I know how to pass a protocol using @obcj</a>, but I can't use @obcj, because my protocols have property.</div></div>
</blockquote></div><br></div>