Rule.js 447 B

123456789101112131415161718192021
  1. // Generated by CoffeeScript 1.9.3
  2. var DeclarationBlock, Rule, Selector;
  3. Selector = require('./rule/Selector');
  4. DeclarationBlock = require('./rule/DeclarationBlock');
  5. module.exports = Rule = (function() {
  6. function Rule(selector) {
  7. this.selector = new Selector(selector);
  8. this.styles = new DeclarationBlock;
  9. }
  10. Rule.prototype.setStyles = function(styles) {
  11. this.styles.set(styles);
  12. return this;
  13. };
  14. return Rule;
  15. })();