Ruby utility for constructing HTML class strings conditionally with the provided syntax, you can define a module named Clsx that includes a method to handle each case: strings, objects (hashes), arrays, and a combination of these with nested structures. This method will recursively process each argument, filter out falsy values, and concatenate the truthy values into a single string.
Required Ruby Version
>= 2.6.0
Authors
Seth Horsley
Versions
-
0.1.3
-
source
- 0.1.3 source March 03, 2024 (7 KB)
-
-
0.1.2
-
source
- 0.1.2 source March 03, 2024 (7 KB)
-
-
0.1.0
-
source
- 0.1.0 source November 01, 2022 (8.5 KB)
-