Simple
An id selector (e.g. `foo`).
The id name.
@return [String]
@param name [String] The id name
# File lib/sass/selector.rb, line 86 def initialize(name) @name = name end
@see AbstractSequence#specificity
# File lib/sass/selector.rb, line 105 def specificity SPECIFICITY_BASE**2 end
@see Selector#to_s
# File lib/sass/selector.rb, line 91 def to_s "#" + @name end
Returns `nil` if `sels` contains an {Id} selector with a different name than this one.
@see Selector#unify
# File lib/sass/selector.rb, line 99 def unify(sels) return if sels.any? {|sel2| sel2.is_a?(Id) && name != sel2.name} super end
[Validate]
Generated with the Darkfish Rdoc Generator 2.