lib/rdoc/markup/inline.rb in rdoc-2.4.3 vs lib/rdoc/markup/inline.rb in rdoc-2.5

- old
+ new

@@ -1,14 +1,16 @@ -require 'rdoc/markup' - class RDoc::Markup ## # We manage a set of attributes. Each attribute has a symbol name and a bit # value. class Attribute + + ## + # Special attribute type. See RDoc::Markup#add_special + SPECIAL = 1 @@name_to_bitmap = { :_SPECIAL_ => SPECIAL } @@next_bitmap = 2 @@ -38,19 +40,19 @@ end end end - AttrChanger = Struct.new :turn_on, :turn_off + AttrChanger = Struct.new :turn_on, :turn_off # :nodoc: ## # 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_on}" end end ## # An array of attributes which parallels the characters in a string. @@ -121,6 +123,5 @@ end end -require 'rdoc/markup/attribute_manager'