Skip to main content

extract_pattern

Function extract_pattern 

Source
pub fn extract_pattern(content: &str) -> String
Expand description

Extract the primary GoF pattern name from doc content.

Looks for known pattern names in the content. Returns the first match or “–” if none found.