Parent

Methods

RDoc::Markup::AttrSpan

An array of attributes which parallels the characters in a string.

Public Class Methods

new(length) click to toggle source

Creates a new AttrSpan for length characters

    # File lib/rdoc/markup/inline.rb, line 65
65:     def initialize(length)
66:       @attrs = Array.new(length, 0)
67:     end

Public Instance Methods

[](n) click to toggle source

Acccesses flags for character n

    # File lib/rdoc/markup/inline.rb, line 80
80:     def [](n)
81:       @attrs[n]
82:     end
set_attrs(start, length, bits) click to toggle source

Toggles bits from start to length

    # File lib/rdoc/markup/inline.rb, line 71
71:     def set_attrs(start, length, bits)
72:       for i in start ... (start+length)
73:         @attrs[i] |= bits
74:       end
75:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.