You are here

private function HamlParser::isHelper in Sassy 7

* Return a value indicating if the line is a HamlHelper. *

Parameters

array line to test: * @return boolean true if the line is a HamlHelper, false if not

1 call to HamlParser::isHelper()
HamlParser::parseLine in phamlp/haml/HamlParser.php
* Parse a line of Haml into a HamlNode for the document tree *

File

phamlp/haml/HamlParser.php, line 750

Class

HamlParser
HamlParser class. Parses {@link http://haml-lang.com/ Haml} view files. @package PHamlP @subpackage Haml

Code

private function isHelper($line) {
  return preg_match(HamlHelperNode::MATCH, $line[self::HAML_CONTENT], $matches) ? method_exists($this->helperClass, $matches[HamlHelperNode::NAME]) : false;
}