Sync RDoc 6.14.0

This commit is contained in:
Stan Lo 2025-05-22 22:49:04 +01:00 committed by Takashi Kokubun
parent ca1ea95784
commit 03eb777c69
185 changed files with 2008 additions and 1655 deletions

View file

@ -13,23 +13,23 @@ class RDoc::Markup::Table
attr_accessor :body
# Creates new instance
def initialize header, align, body
def initialize(header, align, body)
@header, @align, @body = header, align, body
end
# :stopdoc:
def == other
def ==(other)
self.class == other.class and
@header == other.header and
@align == other.align and
@body == other.body
end
def accept visitor
def accept(visitor)
visitor.accept_table @header, @body, @align
end
def pretty_print q
def pretty_print(q)
q.group 2, '[Table: ', ']' do
q.group 2, '[Head: ', ']' do
q.seplist @header.zip(@align) do |text, align|