Method: ApacheConf#filter_comments
- Defined in:
- lib/resources/apache_conf.rb
#filter_comments(data) ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'lib/resources/apache_conf.rb', line 51 def filter_comments(data) content = '' data.each_line do |line| if !line.match(/^\s*#/) content << line end end content end |