public function SassNumber::hasUnits in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/script/literals/SassNumber.php \SassNumber::hasUnits()
Returns a value indicating if this number has units.
Return value
boolean true if this number has, false if not
File
- phpsass/
script/ literals/ SassNumber.php, line 398
Class
- SassNumber
- SassNumber class. Provides operations and type testing for Sass numbers. Units are of the passed value are converted the those of the class value if it has units. e.g. 2cm + 20mm = 4cm while 2 + 20mm = 22mm. @package PHamlP @subpackage …
Code
public function hasUnits() {
return !$this
->isUnitless();
}