File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,21 @@ ways to write a Raku expression that produces a particular value. Since the
180
180
change of name to Raku, this method is deprecated and might disappear in the
181
181
near future. Use C < .raku > instead.
182
182
183
+ = head2 method raku
184
+
185
+ multi method raku(Mu:U:)
186
+ multi method raku(Mu:D:)
187
+
188
+ For type objects, returns its name if C < .perl > has not been redefined from
189
+ Mu, or calls C < .perl > o the name of the type object otherwise.
190
+
191
+ say Str.raku; # OUTPUT: «Str»
192
+
193
+ For plain objects, it will conventionally return a representation of the object
194
+ that can be used via EVAL to reconstruct the value of the object.
195
+
196
+ say (1..3).Set.raku; # OUTPUT: «Set.new(1,2,3)»
197
+
183
198
= head2 method item
184
199
185
200
method item(Mu \item:) is raw
You can’t perform that action at this time.
0 commit comments