Class: Sass::Tree::CharsetNode
- Defined in:
- lib/sass/tree/charset_node.rb
Overview
A static node representing an unproccessed Sass @charset
directive.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the charset.
Attributes inherited from Node
#children, #filename, #has_children, #line, #options
Instance Method Summary collapse
-
#initialize(name) ⇒ CharsetNode
constructor
A new instance of CharsetNode.
- #invisible? ⇒ Boolean
Methods inherited from Node
#<<, #==, #balance, #deep_copy, #do_extend, #each, #style, #to_s, #to_sass, #to_scss
Constructor Details
#initialize(name) ⇒ CharsetNode
Returns a new instance of CharsetNode.
12 13 14 15 |
# File 'lib/sass/tree/charset_node.rb', line 12
def initialize(name)
@name = name
super()
end
|
Instance Attribute Details
#name ⇒ String
The name of the charset.
9 10 11 |
# File 'lib/sass/tree/charset_node.rb', line 9
def name
@name
end
|
Instance Method Details
#invisible? ⇒ Boolean
18 19 20 |
# File 'lib/sass/tree/charset_node.rb', line 18
def invisible?
!Sass::Util.ruby1_8?
end
|