lib/vedeu/models/line.rb in vedeu-0.4.22 vs lib/vedeu/models/line.rb in vedeu-0.4.23
- old
+ new
@@ -49,10 +49,10 @@
# @return [Array]
# @see Vedeu::Stream
def chars
return [] if empty?
- streams.map(&:chars).flatten
+ streams.flat_map(&:chars)
end
# Returns a boolean indicating whether the line has content.
#
# @return [Boolean]