mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
Sync RDoc 6.14.0
This commit is contained in:
parent
ca1ea95784
commit
03eb777c69
185 changed files with 2008 additions and 1655 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue