File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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'
3939methods :
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 : |
You can’t perform that action at this time.
0 commit comments