Skip to content

Commit

Permalink
docs: add methods to Url type
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Apr 27, 2024
1 parent 82ff8fc commit 26c1e7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/plugins/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ Properties:
- `is_search` - Whether the file represented by this url from the search result
- `is_archive` - Whether the file represented by this url from an archive

Methods:

- `name()` - The file name of this url
- `stem()` - The file name without the extension of this url
- `join(url)` - Join this url with another url
- `parent()` - The url of the parent directory

Meta methods:

- `__eq(another_url)`
Expand Down

0 comments on commit 26c1e7b

Please sign in to comment.