class RDoc::Markup::List
def << item
def << item @items << item end
def == other # :nodoc:
def == other # :nodoc: self.class == other.class and @type == other.type and @items == other.items end
def accept visitor
def accept visitor visitor.accept_list_start self @items.each do |item| item.accept visitor end visitor.accept_list_end self end
def empty?
def empty? @items.empty? end
def initialize type = nil, *items
def initialize type = nil, *items @type = type @items = [] @items.push(*items) end
def last
def last @items.last end
def pretty_print q # :nodoc:
def pretty_print q # :nodoc: q.group 2, "[list: #{@type} ", ']' do q.seplist @items do |item| q.pp item end end end
def push *items
def push *items @items.push(*items) end