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