class Playbook::PbDocs::KitExample
def source
def source @source ||= begin extension = if type == "rails" "html.erb" else type == "swift" ? "swift" : "jsx" end stringified_code = read_kit_file("docs", "_#{example_key}.#{extension}") sanitize_code(stringified_code) end end