Skip to content

Commit 2b5ade0

Browse files
authored
Update Enum.yaml to add FromName and FromValue to docs (#932)
Adds Enum:FromName and Enum:FromValue calls ## Changes <!-- Please summarize your changes. --> We're missing Enum:FromName and Enum:FromValue in official docs ## Checks By submitting your pull request for review, you agree to the following: - [x] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [x] To the best of my knowledge, all proposed changes are accurate. ---------
1 parent 55fb5c3 commit 2b5ade0

File tree

1 file changed

+24
-0
lines changed
  • content/en-us/reference/engine/datatypes

1 file changed

+24
-0
lines changed

content/en-us/reference/engine/datatypes/Enum.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,29 @@ methods:
2727
code_samples: []
2828
tags: []
2929
deprecation_message: ''
30+
- name: Enum:FromName
31+
summary: |
32+
Converts an enum name to an `Datatype.Enum`.
33+
description: |
34+
Returns either the converted `Datatype.Enum` or `nil`.
35+
parameters:
36+
returns:
37+
- type: Enum | nil
38+
summary: ''
39+
code_samples: []
40+
tags: []
41+
deprecation_message: ''
42+
- name: Enum:FromValue
43+
summary: |
44+
Converts an enum value to an `Datatype.Enum`.
45+
description: |
46+
Returns either the converted `Datatype.Enum` or `nil`.
47+
parameters:
48+
returns:
49+
- type: Enum | nil
50+
summary: ''
51+
code_samples: []
52+
tags: []
53+
deprecation_message: ''
3054
functions:
3155
math_operations:

0 commit comments

Comments
 (0)