T
Tj Holowaychuk
This is an example snippet from a library im working on
http://gist.github.com/137785 I need to be able to 'buffer' or collect
the results without yielding an object to any number of nested blocks.
I know this can be done with method_missing etc but my brain hurts haha
and for some stupid reason im stuck with this issue and have the
incorrect output below
Output:
<ul ><a href="/users"></a>
<li ><a href="/users"></a>
</li>
<a href="/reports"></a>
<li ><a href="/users"></a>
<li ><a href="/users"></a>
</li>
<a href="/reports"></a>
</li>
<a href="/content"></a>
<li ><a href="/users"></a>
<li ><a href="/users"></a>
</li>
<a href="/reports"></a>
<li ><a href="/users"></a>
<li ><a href="/users"></a>
</li>
<a href="/reports"></a>
</li>
<a href="/content"></a>
</li>
</ul>
http://gist.github.com/137785 I need to be able to 'buffer' or collect
the results without yielding an object to any number of nested blocks.
I know this can be done with method_missing etc but my brain hurts haha
and for some stupid reason im stuck with this issue and have the
incorrect output below
Output:
<ul ><a href="/users"></a>
<li ><a href="/users"></a>
</li>
<a href="/reports"></a>
<li ><a href="/users"></a>
<li ><a href="/users"></a>
</li>
<a href="/reports"></a>
</li>
<a href="/content"></a>
<li ><a href="/users"></a>
<li ><a href="/users"></a>
</li>
<a href="/reports"></a>
<li ><a href="/users"></a>
<li ><a href="/users"></a>
</li>
<a href="/reports"></a>
</li>
<a href="/content"></a>
</li>
</ul>