module AsciiTree::CommentStripper
Public Class Methods
strip(string)
click to toggle source
# File lib/ascii_tree/comment_stripper.rb, line 3 def self.strip(string) string.gsub(/#[^\n]*/, "").gsub(/\s+\n/, "\n") end