Skip to content

Commit a6143c5

Browse files
authored
Update README.md
1 parent b3e11a3 commit a6143c5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -290,23 +290,23 @@ Although not visible when writing templates, each underlying value that is passe
290290
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:
291291

292292
* `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.
297297
* `Array`:
298-
* `joined`: Equivalent to `.joined(separator: ", ")`
298+
* `joined() -> String`: Equivalent to `.joined(separator: ", ")`
299299
* `[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.
302302
* `[Parameter]` (`parameters`):
303-
* `names`: Returns a string-array of the names of the parameters.
303+
* `names() -> [String]`: Returns the names of the parameters.
304304
* `names(parameters)` -> `[param1, param2, param3]`.
305-
* `types`: Returns a string-array of the types of the parameters.
305+
* `types() -> [String]`: Returns the types of the parameters.
306306
* Use with `joined`: `joined(types(parameters))` -> `(String, Int, Double)`.
307-
* `namesAndTypes`: Returns a string-array where each element is equivalent to `"\(name): \(type)"`.
307+
* `namesAndTypes() -> [String]`: Returns a string-array where each element is equivalent to `"\(name): \(type)"`.
308308
* Use with `joined`: `joined(namesAndTypes(parameters))` -> `(key: String)` or `(key: String, value: Int)`.
309-
* `tupleValue`: Returns s string-array suitable to be used for making tuples from the parameters.
309+
* `tupleValue() -> String`: Suitable to be used for making tuples from the parameters.
310310
* Use with `withParens`: `withParens(tupleValue(parameters))` -> `(String)` or `(key: String, value: Int)`.
311311

312312
Feel free to suggest a function if you think it'll solve a problem.

0 commit comments

Comments
 (0)