module Phlex::Table::ClassMethods
def properties
def properties @properties ||= [] end
def property(header = nil, **attributes, &body)
def property(header = nil, **attributes, &body) if header.is_a?(String) header_text = header header = -> { head_header(scope: "col") { header_text } } end properties << { header: header, body: body, attributes: attributes, } end