summaryrefslogtreecommitdiff
path: root/lib/rdoc/markup/rule.rb
blob: 4fcd040d2bbac6482741c0b55c80abc711c506b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
##
# A horizontal rule with a weight

class RDoc::Markup::Rule < Struct.new :weight

  def accept visitor
    visitor.accept_rule self
  end

  def pretty_print q # :nodoc:
    q.group 2, '[rule:', ']' do
      q.pp weight
    end
  end

end