class Sass::Tree::DirectiveNode

@see Sass::Tree
they become {ImportNode}s and {CharsetNode}s, respectively.
‘@import` and `@charset` are special cases;
only CSS directives like `@media` and `@font-face` become {DirectiveNode}s.
are handled by their own nodes;
Directives known to Sass, like `@for` and `@debug`,
A static node representing an unprocessed Sass `@`-directive.

def self.resolved(value)

Returns:
  • (DirectiveNode) -

Parameters:
  • value (String) -- See \{#resolved_value}
def self.resolved(value)
  node = new([value])
  node.resolved_value = value
  node
end

def bubbles?

def bubbles?
  has_children
end

def initialize(value)

Parameters:
  • value (Array) -- See \{#value}
def initialize(value)
  @value = value
  @tabs = 0
  super()
end

def name

Returns:
  • (String) - The name of the directive, including `@`.
def name
  @name ||= value.first.gsub(/ .*$/, '')
end

def normalized_name

Returns:
  • (String) - The normalized name of the directive.
def normalized_name
  @normalized_name ||= name.gsub(/^(@)(?:-[a-zA-Z0-9]+-)?/, '\1').downcase
end