Class: CodeScrubber
- Inherits:
-
Object
- Object
- CodeScrubber
- Defined in:
- lib/notroff/code_scrubber.rb
Instance Method Summary collapse
Instance Method Details
#process(paragraphs) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/notroff/code_scrubber.rb', line 2 def process( paragraphs ) paragraphs.each do |p| next unless p[:type] == :code p.string.gsub!(/##.*$/, '') end paragraphs end |