lib/vedeu/models/line.rb in vedeu-0.4.15 vs lib/vedeu/models/line.rb in vedeu-0.4.16
- old
+ new
@@ -20,26 +20,27 @@
attr_accessor :parent
# @!attribute [rw] streams
# @return [Streams]
attr_accessor :streams
-
alias_method :value, :streams
+ # @!attribute [r] attributes
+ # @return [Hash]
+ attr_reader :attributes
+
# Returns a new instance of Vedeu::Line.
#
# @param attributes [Hash]
# @option attributes streams [Vedeu::Streams]
# @option attributes parent [Vedeu::Interface]
# @option attributes colour [Vedeu::Colour]
# @option attributes style [Vedeu::Style]
# @return [Vedeu::Line]
def initialize(attributes = {})
@attributes = defaults.merge!(attributes)
- @colour = @attributes[:colour]
@parent = @attributes[:parent]
@streams = @attributes[:streams]
- @style = @attributes[:style]
end
# @param child []
# @return [void]
def add(child)