Skip to content

Commit 447d9ef

Browse files
FlipezMarkusFreitag
andcommitted
generate docs
Co-Authored-By: Markus Freitag <[email protected]>
1 parent ca605d1 commit 447d9ef

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/docs/literals/string.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ puts(s)
4646

4747
## Literal Specific Methods
4848

49+
### ascii()
50+
> Returns `INTEGER|ARRAY`
51+
52+
Returns the ascii representation of a char or string
53+
54+
55+
<CodeBlockSimple input='"a".ascii()
56+
"abc".ascii()
57+
' output='97
58+
[97, 98, 99]
59+
' />
60+
61+
4962
### count(STRING)
5063
> Returns `INTEGER`
5164

docs/literals/string.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ example: |
3737
// and you can scape a double quote in a double quote string
3838
"te\"st" == 'te"st'
3939
methods:
40+
ascii:
41+
description: "Returns the ascii representation of a char or string"
42+
input: |
43+
"a".ascii()
44+
"abc".ascii()
45+
output: |
46+
97
47+
[97, 98, 99]
4048
count:
4149
description: "Counts how often a given substring occurs in the string."
4250
example: |

0 commit comments

Comments
 (0)