Class | Excesselt::Stylesheet |
In: |
lib/excesselt/stylesheet.rb
|
Parent: | Object |
builder | [R] | |
errors | [R] |
# File lib/excesselt/stylesheet.rb, line 11 def initialize @builder = Builder::XmlMarkup.new @helper_modules = [] @errors = [] end
# File lib/excesselt/stylesheet.rb, line 21 def generate_element(element) rule = rule_for(element) raise "Attempted to generate #{self.name} with parents #{self.parents.inspect} but no rule was found." unless rule rule.generate(builder) end