App-EvalServerAdvanced-Protocol

 view release on metacpan or  search on metacpan

lib/App/EvalServerAdvanced/Protocol.pm  view on Meta::CPAN

method get_contents() {
    if ($self->encoding && $self->encoding ne "raw") {
        return Encode::decode($self->encoding, $self->contents);
    }
    return $self->contents;
}


    # given($type) {
    #     when("Eval") {
    #         # I can't decide if I should decode these or not.  Keeping them as raw bytes seems safer
    #         # for my $file ($obj->files->@*) {
    #         #     my $f_encoding = $file->encoding;

    #         #     if ($f_encoding ne "raw" && $f_encoding ne "") {
    #         #         $file->contents(decode($f_encoding, $file->contents));
    #         #     }
    #         # }            
    #     }




( run in 0.344 second using v1.01-cache-2.11-cpan-de7293f3b23 )