A static node representing an unprocessed Sass `@`-directive. Directives known to Sass, like `@for` and `@debug`, are handled by their own nodes; only CSS directives like `@media` and `@font-face` become {DirectiveNode}s.
`@import` and `@charset` are special cases; they become {ImportNode}s and {CharsetNode}s, respectively.
@see Sass::Tree
# File lib/sass/tree/directive_node.rb, line 55 def bubbles? has_children end
@return [String] The name of the directive, including `@`.
# File lib/sass/tree/directive_node.rb, line 45 def name @name ||= value.first.gsub(/ .*$/, '') end
Strips out any vendor prefixes and downcases the directive name. @return [String] The normalized name of the directive.
# File lib/sass/tree/directive_node.rb, line 51 def normalized_name @normalized_name ||= name.gsub(/^(@)(?:-[a-zA-Z0-9]+-)?/, '\1').downcase end
Generated with the Darkfish Rdoc Generator 2.