Browse files

Use each_line so it works under ruby 1.9

This closes #4.
  • Loading branch information...
1 parent 5b4565e commit 779218f4767f9af89ead774e8ab398a2a1636fda @carlosmn carlosmn committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/docurium.rb
View
2 lib/docurium.rb
@@ -417,7 +417,7 @@ def clean_comment(comment)
def extract_meta(data)
file, brief, defgroup, ingroup = nil
data.each do |block|
- block[:comments].each do |comment|
+ block[:comments].each_line do |comment|
m = []
file = m[1] if m = /@file (.*?)$/.match(comment)
brief = m[1] if m = /@brief (.*?)$/.match(comment)

0 comments on commit 779218f

Please sign in to comment.