IO::All::String - String IO Support for IO::All


IO-All documentation Contained in the IO-All distribution.

Index


Code Index:

NAME

Top

IO::All::String - String IO Support for IO::All

SYNOPSIS

Top

See IO::All.

DESCRIPTION

Top

AUTHOR

Top

Ingy döt Net <ingy@cpan.org>

COPYRIGHT

Top


IO-All documentation Contained in the IO-All distribution.

package IO::All::String;
use strict;
use warnings;
use IO::All -base;
use IO::String;

const type => 'string';
proxy 'string_ref';

sub string {
    my $self = shift;
    bless $self, __PACKAGE__;
    $self->_init;
}

sub open {
    my $self = shift;
    $self->io_handle(IO::String->new);
    $self->set_binmode;
    $self->is_open(1);
}

1;