X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=blobdiff_plain;f=lib%2FHTML%2FZoom%2FStreamBase.pm;h=8fa8d530d8ea42d8e5190161ae17f346feacfd4a;hp=a22158b4d1c3a01ebf0cd1bacca9d2f61f192b94;hb=94a3ddd9ea6e8c859f01407cc17c7042ccf34ba0;hpb=8ee07fa4a7e0efc9155aae8b0e36e731295deeda diff --git a/lib/HTML/Zoom/StreamBase.pm b/lib/HTML/Zoom/StreamBase.pm index a22158b..8fa8d53 100644 --- a/lib/HTML/Zoom/StreamBase.pm +++ b/lib/HTML/Zoom/StreamBase.pm @@ -98,4 +98,11 @@ sub to_html { $self->_zconfig->producer->html_from_stream($self); } +sub AUTOLOAD { + my ($self, $selector, @args) = @_; + my $meth = our $AUTOLOAD; + $meth =~ s/.*:://; + return $self = $self->select($selector)->$meth(@args); +} + 1;