]> gitweb.factorcode.org Git - factor.git/blob - extra/method-chains/method-chains-docs.factor
f5e58e16ebb5ee7db810a21bd5ff9f6d678ec971
[factor.git] / extra / method-chains / method-chains-docs.factor
1 ! (c)2009 Joe Groff bsd license
2 USING: help.markup help.syntax ;
3 IN: method-chains
4
5 HELP: AFTER:
6 { $syntax "AFTER: class generic
7     implementation ;" }
8 { $description "Defines a method on " { $snippet "generic" } " for " { $snippet "class" } " which executes the new " { $snippet "implementation" } " code after invoking the parent class method on " { $snippet "generic" } "." } ;
9
10 HELP: BEFORE:
11 { $syntax "BEFORE: class generic
12     implementation ;" }
13 { $description "Defines a method on " { $snippet "generic" } " for " { $snippet "class" } " which executes the new " { $snippet "implementation" } " code, then invokes the parent class method on " { $snippet "generic" } "." } ;
14
15 ARTICLE: "method-chains" "Method chaining syntax"
16 "The " { $vocab-link "method-chains" } " vocabulary provides syntax for extending method implementations in class hierarchies."
17 { $subsections
18     POSTPONE: AFTER:
19     POSTPONE: BEFORE:
20 } ;
21
22 ABOUT: "method-chains"