flatten array of lines... grmbl
This commit is contained in:
parent
c23409e853
commit
1369e6ac4f
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/usr/local/bin/ruby -w
|
||||||
|
|
||||||
# $Dwarf: ripnews.rb,v 1.86 2005/01/28 20:06:45 ward Exp $
|
# $Dwarf: ripnews.rb,v 1.87 2005/01/28 20:13:54 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -200,6 +200,8 @@ def parse_config(default = {})
|
||||||
x
|
x
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lines.flatten!
|
||||||
|
|
||||||
lines.collect!{|x|
|
lines.collect!{|x|
|
||||||
x.sub!(/^\s*/, "")
|
x.sub!(/^\s*/, "")
|
||||||
x.sub!(/\#.*$/, "")
|
x.sub!(/\#.*$/, "")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue