Skip to content
Browse files

Merge pull request #5 from carlosmn/one-niner

Use each_line so it works under ruby 1.9
  • Loading branch information...
2 parents 5b4565e + 779218f commit 972940ac5d2463730daf22c3c18a5b672d444f4a @vmg vmg committed
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 972940a

Please sign in to comment.
Something went wrong with that request. Please try again.