nl-out
ErrorsCollection

nl-out

Synthesised documentation from type/Any type/IO/Handle type/IO/CatHandle

From type/Any

See Original text in context

method nl-out(--> Str)

Returns Str with the value of "\n". See IO::Handle.nl-out for the details.

Num.nl-out.print;     # OUTPUT: «␤» 
Whatever.nl-out.print;# OUTPUT: «␤» 
33.nl-out.print;      # OUTPUT: «␤»

From type/IO/Handle

See Original text in context

has Str:D $.nl-out is rw = "\n";

One of the attributes that can be set via .new or open. Defaults to "\n". Takes a Str specifying output line ending for this handle, to be used by methods put and .say.

with 'test'.IO {
    given .open: :w {
        .put: 42;
        .nl-out = 'foo';
        .put: 42;
        .close;
    }
    .slurp.raku.say# OUTPUT: «"42\n42foo"» 
}

From type/IO/CatHandle

See Original text in context

multi method nl-out(|)

The IO::CatHandle type overrides this method to throw a X::NYI exception. If you have a good idea for how this method should behave, tell Rakudo developers about it!