Module: AsciiTree::CommentStripper

Defined in:
lib/ascii_tree/comment_stripper.rb

Class Method Summary collapse

Class Method Details

.strip(string) ⇒ Object



4
5
6
# File 'lib/ascii_tree/comment_stripper.rb', line 4

def self.strip(string)
  string.gsub(/#[^\n]*/, "").gsub(/\s+\n/, "\n")
end