You are here

public function SassLiteral::op_div in Sassy 7

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

* SassScript '/' operation. *

Parameters

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

1 call to SassLiteral::op_div()
SassNumber::op_div in phamlp/sass/script/literals/SassNumber.php
* Divides this value by the value of other *
2 methods override SassLiteral::op_div()
SassColour::op_div in phamlp/sass/script/literals/SassColour.php
* Colour division *
SassNumber::op_div in phamlp/sass/script/literals/SassNumber.php
* Divides this value by the value of other *

File

phamlp/sass/script/literals/SassLiteral.php, line 131

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_div($other) {
  return new SassString($this
    ->toString() . '/' . $other
    ->toString());
}