Class GssFunctions.SelectFrom

java.lang.Object
com.google.common.css.compiler.gssfunctions.GssFunctions.SelectFrom
All Implemented Interfaces:
GssFunction
Enclosing class:
GssFunctions

public static class GssFunctions.SelectFrom extends Object implements GssFunction
Allows the equivalent of the ternary operator in GSS, using three @def statements as inputs. This GSS:

@def MYDEF selectFrom(FOO, BAR, BAZ);

implies:

MYDEF = FOO ? BAR : BAZ;

So this gss:

@def FOO true;

then implies:

MYDEF = BAR;

  • Constructor Details

    • SelectFrom

      public SelectFrom()
  • Method Details