lib/vedeu/views/view.rb in vedeu-0.8.26 vs lib/vedeu/views/view.rb in vedeu-0.8.27
- old
+ new
@@ -82,19 +82,10 @@
defaults.merge!(attributes).each do |key, value|
instance_variable_set("@#{key}", value)
end
end
- # Adds the child to the collection.
- #
- # @param child [Vedeu::Views::Line]
- # @return [Vedeu::Views::Lines]
- def add(child)
- @value = value.add(child)
- end
- alias << add
-
# @return [Hash]
def attributes
{
client: client,
colour: colour,
@@ -104,20 +95,9 @@
style: style,
value: value,
wordwrap: wordwrap,
zindex: zindex,
}
- end
-
- # @return [NilClass|String|Symbol]
- def name
- if present?(@name)
- @name
-
- elsif parent && present?(parent.name)
- parent.name
-
- end
end
# Store the view in its respective buffer.
#
# @param refresh [Boolean] Should the buffer of the view be