projects
/
catagits/HTML-Zoom.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
factor out ArrayStream, update new stream types to respect peek
[catagits/HTML-Zoom.git]
/
lib
/
HTML
/
Zoom
/
CodeStream.pm
1
package HTML::Zoom::CodeStream;
2
3
use strict;
4
use warnings FATAL => 'all';
5
use base qw(HTML::Zoom::StreamBase);
6
7
sub new {
8
my ($class, $args) = @_;
9
bless({ _code => $args->{code}, _zconfig => $args->{zconfig} }, $class);
10
}
11
12
sub _next {
13
$_[0]->{_code}->();
14
}
15
16
1;
17