class ClassVariants::Instance
def render(**overrides)
Experimental RBS support (using type sampling data from the type_fusion
project).
def render: (**Hash overrides) -> String
This signature was generated using 18 samples from 1 application.
def render(**overrides) # Start with our default classes result = [@classes] # Then merge the passed in overrides on top of the defaults @defaults.merge(overrides) .each do |variant_type, variant| # dig the classes out and add them to the result result << @variants.dig(variant_type, variant) end # Compact out any nil values we may have dug up result.compact! # Return the final token list result.join " " end