module Phlex::Helpers
def tokens(*tokens, **conditional_tokens)
def tokens(*tokens, **conditional_tokens) onal_tokens.each do |condition, token| = case condition Symbol then send(condition) Proc then condition.call raise ArgumentError, "The class condition must be a Symbol or a Proc." thy token Hash then _append_token(tokens, token[:then]) _append_token(tokens, token) token Hash then _append_token(tokens, token[:else]) join(" ")