lib/sass/selector/simple_sequence.rb in haml-edge-3.1.72 vs lib/sass/selector/simple_sequence.rb in haml-edge-3.1.73
- old
+ new
@@ -98,12 +98,11 @@
# Returns whether or not this selector matches all elements
# that the given selector matches (as well as possibly more).
#
# @example
- # (.foo).superselector?(.foo.bar) #=> true
- # (.foo).superselector?(.bar) #=> false
- #
+ # (.foo).superselector?(.foo.bar) #=> true
+ # (.foo).superselector?(.bar) #=> false
# @param sseq [SimpleSequence]
# @return [Boolean]
def superselector?(sseq)
(base.nil? || base.eql?(sseq.base)) && rest.subset?(sseq.rest)
end