class Lookbook::FrontmatterExtractor
def extract_frontmatter(text)
def extract_frontmatter(text) matches = text.match(FRONTMATTER_REGEX) matches ? YAML.safe_load(matches[0]).deep_symbolize_keys : {} end
def extract_frontmatter(text) matches = text.match(FRONTMATTER_REGEX) matches ? YAML.safe_load(matches[0]).deep_symbolize_keys : {} end