The Str routine

Combined from primary sources listed below.

In class IO::Handle ( type/IO/Handle )§

See primary docmentation in context for method Str.

method Str§

Returns the value of .path, coerced to Str.

say "foo".IO.open.Str# OUTPUT: «foo␤»

In class RakuAST::Doc::Block ( type/RakuAST/Doc/Block )§

See primary docmentation in context for method Str.

method Str§

put $block;  # bar␤

Returns the string for the paragraphs of the block, with any markup also stringified.

In class IO::CatHandle ( type/IO/CatHandle )§

See primary docmentation in context for method Str.

method Str§

method Str(IO::CatHandle:D: --> Str:D)

Calls .Str on the currently active source handle and returns the result. If the source handle queue has been exhausted, returns an implementation-defined string ('<closed IO::CatHandle>' in Rakudo).

In class RakuAST::Doc::Markup ( type/RakuAST/Doc/Markup )§

See primary docmentation in context for method Str.

method Str§

put $markup;  # B<and>␤

Returns the string for the markup object, with any embedded markup also stringified.

In class RakuAST::Doc::Paragraph ( type/RakuAST/Doc/Paragraph )§

See primary docmentation in context for method Str.

method Str§

put $paragraph;  # Text before B<and> after markup␤␤

Returns the string for the paragraph, with any markup stringified.

In class IO::Special ( type/IO/Special )§

See primary docmentation in context for method Str.

method Str§

method Str(IO::Special:D:)

This returns '<STDIN>', '<STDOUT>', or '<STDERR>' as appropriate.

In class IO::Path ( type/IO/Path )§

See primary docmentation in context for method Str.

method Str§

method Str(IO::Path:D: --> Str)

Alias for IO::Path.path. In particular, note that default stringification of an IO::Path does NOT use the value of $.CWD attribute. To stringify while retaining full path information use .absolute or .relative methods.