1##
2# A horizontal rule with a weight
3
4class RDoc::Markup::Rule < Struct.new :weight
5
6  ##
7  # Calls #accept_rule on +visitor+
8
9  def accept visitor
10    visitor.accept_rule self
11  end
12
13  def pretty_print q # :nodoc:
14    q.group 2, '[rule:', ']' do
15      q.pp weight
16    end
17  end
18
19end
20
21