The raku routine

Combined from primary sources listed below.

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

See primary docmentation in context for method raku.

method raku§

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

Returns a string that, when given passed through EVAL gives the original invocant back.

"foo/bar".IO.raku.say;
# OUTPUT: IO::Path.new("foo/bar", :SPEC(IO::Spec::Unix), :CWD("/home/camelia"))

Note that this string includes the value of the .CWD attribute that is set to $*CWD when the path object was created, by default.

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

See primary docmentation in context for method raku.

method raku§

# method .gist falls back to .raku
say $block;  # RakuAST::Doc::Block.new(...

Returns the string that is needed for the creation of the block using RakuAST calls.

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

See primary docmentation in context for method raku.

method raku§

# method .gist falls back to .raku
say $markup;  # RakuAST::Doc::Markup.new(...

Returns the string that is needed for the creation of the markup using RakuAST calls.

In class IO::Path::Win32 ( Type/IO/Path/Win32 )§

See primary docmentation in context for method raku.

method raku§

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

Returns a string that, when given passed through EVAL gives the original invocant back.

IO::Path::Win32.new("foo/bar").raku.say;
# OUTPUT: IO::Path::Win32.new("foo/bar", :CWD("C:\\Users\\camelia"))

Note that this string includes the value of the .CWD attribute that is set to $*CWD when the path object was created, by default.

In class IO::Path::Cygwin ( Type/IO/Path/Cygwin )§

See primary docmentation in context for method raku.

method raku§

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

Returns a string that, when given passed through EVAL gives the original invocant back.

IO::Path::Cygwin.new("foo/bar").raku.say;
# OUTPUT: IO::Path::Cygwin.new("foo/bar", :CWD("/home/camelia"))

Note that this string includes the value of the .CWD attribute that is set to $*CWD when the path object was created, by default.

In class RakuAST::Doc::Declarator ( Type/RakuAST/Doc/Declarator )§

See primary docmentation in context for method raku.

method raku§

# method .gist falls back to .raku
say $declarator;  # RakuAST::Doc::Declarator.new(...

Returns the string that is needed for the creation of the block using RakuAST calls.

In class IO::Path::QNX ( Type/IO/Path/QNX )§

See primary docmentation in context for method raku.

method raku§

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

Returns a string that, when given passed through EVAL gives the original invocant back.

IO::Path::QNX.new("foo/bar").raku.say;
# OUTPUT: IO::Path::QNX.new("foo/bar", :CWD("/home/camelia"))

Note that this string includes the value of the .CWD attribute that is set to $*CWD when the path object was created, by default.

In class Range ( Type/Range )§

See primary docmentation in context for method raku.

method raku§

multi method raku(Range:D:)

Returns an implementation-specific string that produces an equivalent object when given to EVAL.

say (1..2).raku # OUTPUT: «1..2␤»

In class Rat ( Type/Rat )§

See primary docmentation in context for method raku.

method raku§

multi method raku(Rat:D: --> Str:D)

Returns an implementation-specific string that produces an equivalent object when given to EVAL.

say (1/3).raku;                # OUTPUT: «<1/3>␤»
say (2/4).raku;                # OUTPUT: «0.5␤»

In class Mu ( Type/Mu )§

See primary docmentation in context for method raku.

method raku§

multi method raku(Mu:U:)
multi method raku(Mu:D:)

For type objects, returns its name if .raku has not been redefined from Mu, or calls .raku on the name of the type object otherwise.

say Str.raku;          # OUTPUT: «Str␤»

For plain objects, it will conventionally return a representation of the object that can be used via EVAL to reconstruct the value of the object.

say (1..3).Set.raku;  # OUTPUT: «Set.new(1,2,3)␤»

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

See primary docmentation in context for method raku.

method raku§

# method .gist falls back to .raku
say $block;  # RakuAST::Doc::Paragraph.new(...

Returns the string that is needed for the creation of the paragraph using RakuAST calls.

In class IO::Path::Unix ( Type/IO/Path/Unix )§

See primary docmentation in context for method raku.

method raku§

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

Returns a string that, when given passed through EVAL gives the original invocant back.

IO::Path::Unix.new("foo/bar").raku.say;
# OUTPUT: IO::Path::Unix.new("foo/bar", :CWD("/home/camelia"))

Note that this string includes the value of the .CWD attribute that is set to $*CWD when the path object was created, by default.

In class Complex ( Type/Complex )§

See primary docmentation in context for method raku.

method raku§

method raku(Complex:D: --> Str:D)

Returns an implementation-specific string that produces an equivalent object when given to EVAL.

say (1-3i).raku;                # OUTPUT: «<1-3i>␤»

In class Junction ( Type/Junction )§

See primary docmentation in context for method raku.

method raku§

multi method raku(Junction:D:)

Collapses the Junction and returns a Str composed of raku of its components that evaluates to the equivalent Junction with equivalent components:

<a 42 c>.all.raku.put# OUTPUT: «all("a", IntStr.new(42, "42"), "c")␤»

In class FatRat ( Type/FatRat )§

See primary docmentation in context for method raku.

method raku§

multi method raku(FatRat:D: --> Str:D)

Returns an implementation-specific string that produces an equivalent object when given to EVAL.

say FatRat.new(1, 2).raku# OUTPUT: «FatRat.new(1, 2)␤»

In class IterationBuffer ( Type/IterationBuffer )§

See primary docmentation in context for method raku.

method raku§

method raku(IterationBuffer:D: --> Str)

Produces a representation of the IterationBuffer as a List postfixed with ".IterationBuffer" to make it different from an ordinary list. Does not roundtrip. Intended for debugging uses only, specifically for use with dd.

In class Allomorph ( Type/Allomorph )§

See primary docmentation in context for method raku.

method raku§

multi method raku(Allomorph:D:)

Return a representation of the object that can be used via EVAL to reconstruct the value of the object.