class RDoc::Markup::AttrSpan
def [](n)
def [](n) @attrs[n] end
def initialize(length, exclusive)
def initialize(length, exclusive) @attrs = Array.new(length, 0) @exclusive = exclusive end
def set_attrs(start, length, bits)
#
def set_attrs(start, length, bits) updated = false for i in start ... (start+length) if (@exclusive & @attrs[i]) == 0 || (@exclusive & bits) != 0 @attrs[i] |= bits updated = true end end updated end