 &#39;,&#39; $ID {op(name:$1,age:$3,city:$5){{name: name, age: age, city: city};}});

/* Execute with dynamically added rule */
csv_result = etl_rules.parse(&quot;John,25,NY&quot;, etl_rules.csv_parser);
/* Result: {name: &quot;John&quot;, age: 25, city: &quot;NY&quot;} */
</code></pre></div>
<h4 id="3b-dynamic-rule-addition-to-class-objects"><strong>3b. Dynamic Rule Addition to $CLASS Objects</strong></h4>
<div class="highlight"><pre><span></span><code>/* Define base ETL rules class with add_rule method */