You are here

public function SassLiteral::op_minus in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/script/literals/SassLiteral.php \SassLiteral::op_minus()

* SassScript '-' operation. *

Parameters

SassLiteral value to subtract: * @return sassString the string values of this and other seperated by '-'

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

File

phamlp/sass/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());
}