isruleset method

Keyword isruleset (
  1. Node n
)

Returns true if a value is a ruleset, false otherwise.

Parameters: value - a variable being evaluated. Returns: true if value is a ruleset, false otherwise. Example: @rules: { color: red; } isruleset(@rules); // true isruleset(#ff0); // false

Implementation

Keyword isruleset(Node n) =>
    (n is DetachedRuleset) ? Keyword.True() : Keyword.False();