On 1/2/07, <b class="gmail_sendername">aslak hellesoy</b> &lt;<a href="mailto:aslak.hellesoy@gmail.com">aslak.hellesoy@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 1/2/07, Nick Sieger &lt;<a href="mailto:nicksieger@gmail.com">nicksieger@gmail.com</a>&gt; wrote:<br>&gt; Hi, I wrote an article [1] outlining some tricks I&#39;ve developed adding<br>&gt; custom extensions into RSpec.&nbsp;&nbsp;But they all hinge upon
<br>&gt; Spec::Runner::Context#before_context_eval and the<br>&gt; @context_eval_module ivar.&nbsp;&nbsp;So I was wondering whether this mechanism can be<br>&gt; relied on in the future, or whether this is even the best way to wire in
<br>&gt; such extensions.&nbsp;&nbsp;If you have a recommended way I&#39;d love to hear about it so<br>&gt; I can incorporate it into my article and make sure I don&#39;t highlight the<br>&gt; wrong way of doing things.<br>&gt;<br>
<br>Regarding the stability of the API - I&#39;m a little worried about having<br>extensions use private variables. </blockquote><div><br>Agreed.&nbsp; I was still motivated to post, but I suspected you would think that about the monkeypatching and the direct use of the ivar.&nbsp; I think I&#39;ll put a small disclaimer at the top of the post, and keep it up to date to follow whatever you guys think would be appropriate for an extension point API.
<br><br>/Nick<br></div><br></div>