You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -290,23 +290,23 @@ Although not visible when writing templates, each underlying value that is passe
290
290
In addition to [`swift-mustache`'s own "functions"/"transforms"](https://docs.hummingbird.codes/2.0/documentation/hummingbird/transforms/), `EnumeratorMacro` supports these transformations for each type:
291
291
292
292
*`String`:
293
-
*`capitalized`: Capitalizes the first letter.
294
-
*`snakeCased`: Converts the string from camelCase to snake_case.
295
-
*`camelCased`: Converts the string from snake_case to camelCase.
296
-
*`withParens`: If the string is not empty, surrounds it in parenthesis.
293
+
*`capitalized() -> String`: Capitalizes the first letter.
294
+
*`snakeCased() -> String`: Converts the string from camelCase to snake_case.
295
+
*`camelCased() -> String`: Converts the string from snake_case to camelCase.
296
+
*`withParens() -> String`: If the string is not empty, surrounds it in parenthesis.
297
297
*`Array`:
298
-
*`joined`: Equivalent to `.joined(separator: ", ")`
298
+
*`joined() -> String`: Equivalent to `.joined(separator: ", ")`
299
299
*`[Case]` (`cases`):
300
-
*`filterNoParams`: Filters-in the cases with no parameters.
301
-
*`filterWithParams`: Filters-in the cases with one or more parameters.
300
+
*`filterNoParams() -> [Case]`: Filters-in the cases with no parameters.
301
+
*`filterWithParams() -> [Case]`: Filters-in the cases with one or more parameters.
302
302
*`[Parameter]` (`parameters`):
303
-
*`names`: Returns a string-array of the names of the parameters.
303
+
*`names() -> [String]`: Returns the names of the parameters.
0 commit comments