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