Sha256: f4a68274b4fcd46648c129703b7b89a84df7c7e382f1e8d52715cc36fac027c0
Contents?: true
Size: 1.22 KB
Versions: 37
Compression:
Stored size: 1.22 KB
Contents
module Sass module Selector # The abstract parent class of the various selector sequence classes. # # All subclasses should implement a `members` method # that returns an array of object that respond to `#line=` and `#filename=`. class AbstractSequence # The line of the Sass template on which this selector was declared. # # @return [Fixnum] attr_reader :line # The name of the file in which this selector was declared. # # @return [String, nil] attr_reader :filename # Sets the line of the Sass template on which this selector was declared. # This also sets the line for all child selectors. # # @param line [Fixnum] # @return [Fixnum] def line=(line) members.each {|m| m.line = line} @line = line end # Sets the name of the file in which this selector was declared, # or `nil` if it was not declared in a file (e.g. on stdin). # This also sets the filename for all child selectors. # # @param filename [String, nil] # @return [String, nil] def filename=(filename) members.each {|m| m.filename = filename} @filename = filename end end end end
Version data entries
37 entries across 37 versions & 2 rubygems