You are here

public function SassLiteral::op_minus in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/script/literals/SassLiteral.php \SassLiteral::op_minus()

SassScript '-' operation.

Parameters

SassLiteral value to subtract:

Return value

sassString the string values of this and other seperated by '-'

2 methods override SassLiteral::op_minus()
SassColour::op_minus in phpsass/script/literals/SassColour.php
Colour subraction
SassNumber::op_minus in phpsass/script/literals/SassNumber.php
Subtracts the value of other from this value

File

phpsass/script/literals/SassLiteral.php, line 113

Class

SassLiteral
SassLiteral class. Base class for all Sass literals. Sass data types are extended from this class and these override the operation methods to provide the appropriate semantics. @package PHamlP @subpackage Sass.script.literals

Code

public function op_minus($other) {
  return new SassString($this
    ->toString() . '-' . $other
    ->toString());
}