class Playbook::PbBody::Body
def apply_highlight(text)
def apply_highlight(text) pb_highlight_output = pb_rails("highlight") { "|" } highlight_tags = pb_highlight_output.split("|") highlight(text, highlighted_text, highlighter: "#{highlight_tags.first.html_safe} \\1 #{highlight_tags.last.html_safe}") end
def classname
def classname generate_classname("pb_body_kit", color_class, status_class) end
def color_class
def color_class color == "default" ? nil : color end
def content
def content body_text = super.presence || text highlighting ? apply_highlight(body_text) : body_text end
def status_class
def status_class status == "neutral" ? nil : status end