Skip to content

Commit 1fa6313

Browse files
committed
Begin to document Metamethods
1 parent ee0ea36 commit 1fa6313

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

htmlify.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
354354
%attr = :kind<type>,
355355
:categories($tg.types{$name}.?categories//''),
356356
}
357-
when 'variable'|'sigil'|'twigil'|'declarator'|'quote' {
357+
when 'variable'|'sigil'|'twigil'|'declarator'|'quote'|'syntax' {
358358
# TODO: More types of syntactic features
359359
%attr = :kind<syntax>,
360360
:categories($subkinds),

lib/Language/mop.pod

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
=begin pod
2+
3+
=TITLE Meta-Object Protocol
4+
5+
TODO
6+
7+
=head1 Metamethods
8+
9+
TODO
10+
11+
=head2 X<WHAT|syntax,WHAT>
12+
13+
The type object of the type.
14+
15+
=head2 X<WHICH|syntax,WHICH>
16+
17+
The object's identity value.
18+
19+
=head2 X<WHO|syntax,WHO>
20+
21+
The package supporting the object.
22+
23+
=head2 X<WHERE|syntax,WHERE>
24+
25+
The memory address of the object.
26+
27+
=head2 X<HOW|syntax,HOW>
28+
29+
The metaclass object: "Higher Order Workings"
30+
31+
=head2 X<WHY|syntax,WHY>
32+
33+
The attached Pod value.
34+
35+
=head2 X<DEFINITE|syntax,DEFINITE>
36+
37+
The object has a valid concrete representation.
38+
39+
=head2 X<VAR|syntax,VAR>
40+
41+
Returns the underlying C<Scalar> object, if there is one.
42+
43+
=end pod

0 commit comments

Comments
 (0)