Sha256: d93fd36aa1932be96673781d3bac424b1eaaae1e1b286b02c902a3ffdaf8bb65
Contents?: true
Size: 470 Bytes
Versions: 187
Compression:
Stored size: 470 Bytes
Contents
## # An array of attributes which parallels the characters in a string. class RDoc::Markup::AttrSpan ## # Creates a new AttrSpan for +length+ characters def initialize(length) @attrs = Array.new(length, 0) end ## # Toggles +bits+ from +start+ to +length+ def set_attrs(start, length, bits) for i in start ... (start+length) @attrs[i] |= bits end end ## # Accesses flags for character +n+ def [](n) @attrs[n] end end
Version data entries
187 entries across 135 versions & 25 rubygems