You are here

public function SassRuleNode::addSelectors in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/tree/SassRuleNode.php \SassRuleNode::addSelectors()

Adds selector(s) to the rule. If the selectors are to continue for the rule the selector must end in a comma

Parameters

string selector:

1 call to SassRuleNode::addSelectors()
SassRuleNode::__construct in phpsass/tree/SassRuleNode.php
SassRuleNode constructor.

File

phpsass/tree/SassRuleNode.php, line 65

Class

SassRuleNode
SassRuleNode class. Represents a CSS rule. @package PHamlP @subpackage Sass.tree

Code

public function addSelectors($selectors) {
  $this->isContinued = substr($selectors, -1) === self::CONTINUED;
  $this->selectors = array_merge($this->selectors, $this
    ->explode($selectors));
}