Class: Csscss::Selector

Inherits:
Struct
  • Object
show all
Defined in:
lib/csscss/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#selectorsObject

Returns the value of attribute selectors

Returns:

  • (Object)

    the current value of selectors



82
83
84
# File 'lib/csscss/types.rb', line 82

def selectors
  @selectors
end

Class Method Details

.from_parser(selectors) ⇒ Object



83
84
85
# File 'lib/csscss/types.rb', line 83

def self.from_parser(selectors)
  new(selectors.to_s.strip)
end

Instance Method Details

#<=>(other) ⇒ Object



87
88
89
# File 'lib/csscss/types.rb', line 87

def <=>(other)
  selectors <=> other.selectors
end

#inspectObject



95
96
97
# File 'lib/csscss/types.rb', line 95

def inspect
  "<#{self.class} #{selectors}>"
end

#to_sObject



91
92
93
# File 'lib/csscss/types.rb', line 91

def to_s
  selectors
end