class Sass::Tree::Node
def invalid_child?(child)
-
(Boolean, String)
- Whether or not the child node is valid,
Parameters:
-
child
(Tree::Node
) -- A potential child node
def invalid_child?(child) case child when Tree::MixinDefNode "Mixins may only be defined at the root of a document." when Tree::ImportNode "Import directives may only be used at the root of a document." when Tree::ExtendNode "Extend directives may only be used within rules." end end