class Sass::Tree::PropNode
def invalid_child?(child)
-
(String)
- An error message if the child is invalid, or nil otherwise
Parameters:
-
child
(Tree::Node
) -- A potential child node
def invalid_child?(child) if !child.is_a?(PropNode) && !child.is_a?(CommentNode) "Illegal nesting: Only properties may be nested beneath properties." end end