| Class | RDoc::RI::AttributeFormatter::AttributeString |
| In: |
ri/formatter.rb
|
| Parent: | Object |
accept non space, then all following spaces
# File ri/formatter.rb, line 255
255: def next_word
256: start = @optr
257: len = @txt.length
258:
259: while @optr < len && @txt[@optr].char != " "
260: @optr += 1
261: end
262:
263: while @optr < len && @txt[@optr].char == " "
264: @optr += 1
265: end
266:
267: @txt[start...@optr]
268: end