forked from factor/factor
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
! (c)2009 Joe Groff bsd license | ||
USING: help.markup help.syntax ; | ||
IN: method-chains | ||
|
||
HELP: AFTER: | ||
{ $syntax "AFTER: class generic | ||
implementation ;" } | ||
{ $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" } "." } ; | ||
|
||
HELP: BEFORE: | ||
{ $syntax "BEFORE: class generic | ||
implementation ;" } | ||
{ $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" } "." } ; | ||
|
||
ARTICLE: "method-chains" "Method chaining syntax" | ||
"The " { $vocab-link "method-chains" } " vocabulary provides syntax for extending method implementations in class hierarchies." | ||
{ $subsections | ||
POSTPONE: AFTER: | ||
POSTPONE: BEFORE: | ||
} ; | ||
|
||
ABOUT: "method-chains" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BEFORE: and AFTER: syntax for extending methods in class hierarchies |