Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created August 14, 2016 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/c981bf86c279da465ffeb885fe1febf0 to your computer and use it in GitHub Desktop.
Save dogbert17/c981bf86c279da465ffeb885fe1febf0 to your computer and use it in GitHub Desktop.
Attempt to document Bool.gist
=head2 routine gist
multi method gist(Bool:D) returns Str:D
multi method gist(Bool:U) returns Str:D
Returns a L<Str|/type/Str> representation of the invocant unless called on the
type object, in which case C<(Bool)>, i.e. the type name in parenthesis, is
returned instead.
say Bool.gist; # (Bool)
say True.gist; # True
say False.gist; # False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment