Class: Sass::Tree::CharsetNode

Inherits:
Node
  • Object
show all
Defined in:
lib/sass/tree/charset_node.rb

Overview

A static node representing an unprocessed Sass @charset directive.

See Also:

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #filename, #has_children, #line, #options, #source_range

Instance Method Summary collapse

Methods inherited from Node

#<<, #==, #balance, #bubbles?, #css, #css_with_sourcemap, #deep_copy, #each, #inspect, #style, #to_sass, #to_scss

Constructor Details

#initialize(name) ⇒ CharsetNode

Returns a new instance of CharsetNode.

Parameters:

  • name (String)

    see #name



12
13
14
15
# File 'lib/sass/tree/charset_node.rb', line 12

def initialize(name)
  @name = name
  super()
end

Instance Attribute Details

#nameString

The name of the charset.

Returns:

  • (String)


9
10
11
# File 'lib/sass/tree/charset_node.rb', line 9

def name
  @name
end

Instance Method Details

#invisible?Boolean

Returns:

  • (Boolean)

See Also:



18
19
20
# File 'lib/sass/tree/charset_node.rb', line 18

def invisible?
  true
end