Path
Class to manage URL paths
Constructor Summary
| Public Constructor | ||
| public |
constructor(f: string, ctx: object) |
|
Member Summary
| Public Members | ||
| public |
ctx: * |
|
Method Summary
| Public Methods | ||
| public |
Append to a path |
|
| public |
delete(loc: integer): instance Delete end of path |
|
| public |
get(): array Get the path |
|
| public |
Parse the path part of a URl |
|
| public |
Replace part of a path |
|
| public |
Get string representatio of the path or the uri |
|
Public Constructors
Public Members
public ctx: * source
Public Methods
public append(s: string): instance source
Append to a path
Params:
| Name | Type | Attribute | Description |
| s | string | path to append |
Return:
| instance | for chaining |
public delete(loc: integer): instance source
Delete end of path
Params:
| Name | Type | Attribute | Description |
| loc | integer | segment of path to delete |
Return:
| instance | for chaining |
public parse(f: string): instance source
Parse the path part of a URl
Params:
| Name | Type | Attribute | Description |
| f | string | string path |
Return:
| instance | for chaining |