<div class="slide">
<h1>Augment and Inner</h1>
- <pre><code>package Document;
+ <pre class="medium"><code>package Document;
sub xml { '<doc>' . <span class="highlight">inner()</span> . '</doc>' }
package Report;
extends 'Document';
<span class="highlight">augment xml</span> =>
- sub { title() . <span class="highlight">inner()</span> . summary() };
+ sub { my $self = shift;
+ $self->title() . <span class="highlight">inner()</span> . $self->summary() };
package TPSReport;
extends 'Report';
<span class="highlight">augment xml</span> =>
- sub { tps_xml() . <span class="highlight">inner()</span> };</code></pre>
+ sub { my $self = shift;
+ $self->tps_xml() . <span class="highlight">inner()</span> };</code></pre>
</div>
<div class="slide">