lib/vedeu/views/lines.rb in vedeu-0.8.3 vs lib/vedeu/views/lines.rb in vedeu-0.8.4

- old
+ new

@@ -16,9 +16,14 @@ # @return [Vedeu::Views::Lines] def self.coerce(collection = [], parent = nil, name = nil) if collection.is_a?(Vedeu::Views::Lines) collection + elsif collection.is_a?(Vedeu::Views::Streams) + if collection.empty? + # @todo Investigate whether this is being used. + end + elsif collection.is_a?(Array) return new(collection, parent, name) if collection.empty? coerced_collection = [] collection.each do |element|