Skip to content

Commit

Permalink
UnknownSeqError more helpful; seq Enumerator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlen Christian Mart Cuss committed Nov 27, 2012
1 parent 6cf0608 commit 8a56e69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rouge/seq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ def self.seq(form)
else
Rouge::Seq::Array.new(form, 0)
end
when Enumerator
seq(form.to_a)
else
raise UnknownSeqError
raise UnknownSeqError, form.inspect
end
end
end
Expand Down

0 comments on commit 8a56e69

Please sign in to comment.