lib/vedeu/models/line.rb in vedeu-0.4.28 vs lib/vedeu/models/line.rb in vedeu-0.4.29

- old
+ new

@@ -39,11 +39,11 @@ end # @param child [] # @return [void] def add(child) - @streams = streams.add(child) + @_streams = @streams = collection.coerce(streams, self).add(child) end # Returns an array of all the characters with formatting for this line. # # @return [Array] @@ -73,10 +73,10 @@ streams.map(&:size).inject(0, :+) end # @return [Vedeu::Streams] def streams - collection.coerce(@streams, self) + @_streams ||= collection.coerce(@streams, self) end # Delegate to Vedeu::Interface#width if available. # # @return [Fixnum]