module HTMLClass::FlattenArgs
Overview
#flatten_args flattens a wide variety of arguments, such as Hash, NamedTuple, String, and Symbol, and Enumerable of these into a single Array of String | Symbol NamedTuple and Hash are flattened by selecting only the keys with truthy values, and then flattening the keys
Extended Modules
Defined in:
html_class/flatten_args.crInstance Method Summary
- #flatten_args(optional : Hash) : Array(String | Symbol)
- #flatten_args(enumerable : Enumerable) : Array(String | Symbol)
- #flatten_args(optional : NamedTuple) : Array(String | Symbol)
- #flatten_args(arg : Nil) : Array(String | Symbol)
- #flatten_args(arg : String | Symbol)
- #flatten_args(*args, **nargs) : Array(String | Symbol)