Created
July 4, 2016 16:53
-
-
Save dogbert17/951106b1c4c66848d9bc491c4753d3e6 to your computer and use it in GitHub Desktop.
Attempt to document Version.Str and gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=head2 method Str | |
method Str(Version:D:) returns Str:D | |
Returns a string representation of the invocant. | |
my $v1 = Version.new(v1.0.1+); | |
my $v2 = Version.new('1.0.1+'); | |
say $v1.Str; # 1.0.1+ | |
say $v2.Str; # 1.0.1+ | |
=head2 method gist | |
method gist(Version:D:) returns Str:D | |
Returns a string representation of the invocant, just like | |
L<Str|#method_Str>, prepended with a lower-case C<v>. | |
my $v1 = Version.new(v1.0.1+); | |
my $v2 = Version.new('1.0.1+'); | |
say $v1.gist; # v1.0.1+ | |
say $v2.gist; # v1.0.1+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment