Sha256: b640d189bbd21cb9acce81528dbf8a619229b7d43590d2a19b4afa5b9eddb44e
Contents?: true
Size: 486 Bytes
Versions: 7
Compression:
Stored size: 486 Bytes
Contents
import { htmlAttributes } from "../html/html-attributes"; export class Quote { attributes: Record<string, any>; children: any[]; constructor(attributes: Record<string, any> = {}) { this.children = []; this.attributes = attributes; } get renderWrapper(): string { return `<q ${htmlAttributes(this.attributes)}>${this.children.map(child => child.renderWrapper).join("")}</q>`; } add(child: any): Quote { this.children.push(child); return this; } }
Version data entries
7 entries across 7 versions & 1 rubygems