| Class | Texy::BlockElement |
| In: |
lib/texy/dom.rb
|
| Parent: | HtmlElement |
This element represent array of other blocks (HtmlElement)
child must be BlockElement or TextualElement
# File lib/texy/dom.rb, line 142 def append_child(child) @children << [@children.size, child] self.content_type = [self.content_type, child.content_type].max end
# File lib/texy/dom.rb, line 148 def child_at(key) @children.find do |item| item[0] == key end[1] rescue nil end
# File lib/texy/dom.rb, line 172 def broadcast super # apply to all children @children.map do |(key, child)| child.broadcast end end