1class RDoc::Markup
2
3  AttrChanger = Struct.new :turn_on, :turn_off # :nodoc:
4
5end
6
7##
8# An AttrChanger records a change in attributes. It contains a bitmap of the
9# attributes to turn on, and a bitmap of those to turn off.
10
11class RDoc::Markup::AttrChanger
12
13  def to_s # :nodoc:
14    "Attr: +#{turn_on}/-#{turn_off}"
15  end
16
17  def inspect # :nodoc:
18    '+%d/-%d' % [turn_on, turn_off]
19  end
20
21end
22
23