Sha256: 2cea69b72688108f0df45816cb23ab7779c10efe1211c25d81e3056831d8720c
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
<?php /* SVN FILE: $Id: SassExtendNode.php 49 2010-04-04 10:51:24Z chris.l.yates $ */ /** * SassExtendNode class file. * @author Chris Yates <chris.l.yates@gmail.com> * @copyright Copyright (c) 2010 PBM Web Development * @license http://phamlp.googlecode.com/files/license.txt * @package PHamlP * @subpackage Sass.tree */ /** * SassExtendNode class. * Represents a Sass @debug or @warn directive. * @package PHamlP * @subpackage Sass.tree */ class SassExtendNode extends SassNode { const IDENTIFIER = '@'; const MATCH = '/^@extend\s+(.+)/i'; const VALUE = 1; /** * @var string the directive */ private $value; /** * SassExtendNode. * @param object source token * @return SassExtendNode */ public function __construct($token) { parent::__construct($token); preg_match(self::MATCH, $token->source, $matches); $this->value = $matches[self::VALUE]; } /** * Parse this node. * @return array An empty array */ public function parse($context) { $this->root->extend($this->value, $this->parent->selectors); return array(); } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
frontsau-0.0.3 | lib/Phamlp/sass/tree/SassExtendNode.php |
frontsau-0.0.2 | lib/Phamlp/sass/tree/SassExtendNode.php |
frontsau-0.0.1 | lib/Phamlp/sass/tree/SassExtendNode.php |