Class: Sass::Selector::Placeholder
- Inherits:
-
Simple
- Object
- Simple
- Sass::Selector::Placeholder
- Defined in:
- .ruby-sass/lib/sass/selector.rb
Overview
A placeholder selector (e.g. `%foo`). This exists to be replaced via `@extend`. Rulesets using this selector will not be printed, but can be extended. Otherwise, this acts just like a class selector.
Instance Attribute Summary (collapse)
-
#name ⇒ String
readonly
The placeholder name.
Attributes inherited from Simple
Instance Method Summary (collapse)
-
#initialize(name) ⇒ Placeholder
constructor
A new instance of Placeholder.
- #specificity ⇒ Object
- #to_s(opts = {}) ⇒ Object
Methods inherited from Simple
#eql?, #hash, #inspect, #unify, #unique?
Constructor Details
#initialize(name) ⇒ Placeholder
Returns a new instance of Placeholder
125 126 127 |
# File '.ruby-sass/lib/sass/selector.rb', line 125 def initialize(name) @name = name end |
Constructor Details
#initialize(name) ⇒ Placeholder
Returns a new instance of Placeholder
125 126 127 |
# File '.ruby-sass/lib/sass/selector.rb', line 125 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ String (readonly)
The placeholder name.
122 123 124 |
# File '.ruby-sass/lib/sass/selector.rb', line 122 def name @name end |
Instance Method Details
#specificity ⇒ Object
135 136 137 |
# File '.ruby-sass/lib/sass/selector.rb', line 135 def specificity SPECIFICITY_BASE end |
#to_s(opts = {}) ⇒ Object
130 131 132 |
# File '.ruby-sass/lib/sass/selector.rb', line 130 def to_s(opts = {}) "%" + @name end |