Method: RDoc::Parser::Ruby#get_tkread_clean
- Defined in:
- lib/rdoc/parser/ruby.rb
#get_tkread_clean(pattern, replacement) ⇒ Object
Retrieves the read token stream and replaces pattern
with replacement
using gsub. If the result is only a “;” returns an empty string.
199 200 201 202 203 |
# File 'lib/rdoc/parser/ruby.rb', line 199 def get_tkread_clean pattern, replacement # :nodoc: read = get_tkread.gsub(pattern, replacement).strip return '' if read == ';' read end |