lib/rdoc/markup/inline.rb in rdoc-3.6.1 vs lib/rdoc/markup/inline.rb in rdoc-3.7

- old
+ new

@@ -58,10 +58,17 @@ # An AttrChanger records a change in attributes. It contains a bitmap of the # attributes to turn on, and a bitmap of those to turn off. class AttrChanger def to_s # :nodoc: - "Attr: +#{Attribute.as_string turn_on}/-#{Attribute.as_string turn_on}" + "Attr: +#{Attribute.as_string turn_on}/-#{Attribute.as_string turn_off}" + end + + def inspect # :nodoc: + "+%s/-%s" % [ + Attribute.as_string(turn_on), + Attribute.as_string(turn_off), + ] end end ## # An array of attributes which parallels the characters in a string.