Class | Excesselt::ElementWrapper |
In: |
lib/excesselt/element_wrapper.rb
|
Parent: | Object |
builder | [R] | |
element | [R] | |
stylesheet | [R] |
# File lib/excesselt/element_wrapper.rb, line 6 def initialize(stylesheet, element, builder) @stylesheet = stylesheet @element = element @builder = builder end
# File lib/excesselt/element_wrapper.rb, line 12 def child_content(selector=nil) elements = selector ? @element.css(selector) : @element.children elements.each do |child| stylesheet.generate_element(child) end end