Class: Sass::Selector::Class
- Inherits:
- Simple
- Object
- Simple
- Sass::Selector::Class
- Defined in:
- /Users/ceppstei/Projects/sass-lang/.sass/lib/sass/selector.rb
Overview
A class selector (e.g. .foo
).
Instance Attribute Summary (collapse)
- - (String) name readonly
The class name.
Attributes inherited from Simple
Instance Method Summary (collapse)
- - (Class) initialize(name) constructor
A new instance of Class.
- - specificity
- - to_s(opts = {})
Methods inherited from Simple
#eql?, #equality_key, #hash, #inspect, #unify, #unify_namespaces
Constructor Details
- (Class) initialize(name)
Returns a new instance of Class
63 64 65 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/selector.rb', line 63
def initialize(name)
@name = name
end |
Instance Attribute Details
- (String) name (readonly)
The class name.
60 61 62 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/selector.rb', line 60
def name
@name
end |
Instance Method Details
- specificity
73 74 75 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/selector.rb', line 73
def specificity
SPECIFICITY_BASE
end |
- to_s(opts = {})
68 69 70 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/selector.rb', line 68
def to_s(opts = {})
"." + @name
end |