Categories: None [Edit]

clsx

https://rubygems.org/gems/clsx
https://github.com/iseth/ruby-clsx
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.

Total

Ranking: 176,093 of 183,107
Downloads: 1,294

Daily

Ranking: 86,038 of 183,092
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName

Owners

#GravatarHandle
1iconmarcoroth
2iconisethi