Class: Csscss::Selector
- Inherits:
-
Struct
- Object
- Struct
- Csscss::Selector
- Defined in:
- lib/csscss/types.rb
Instance Attribute Summary collapse
-
#selectors ⇒ Object
Returns the value of attribute selectors.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#selectors ⇒ Object
Returns the value of attribute 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 |
#inspect ⇒ Object
95 96 97 |
# File 'lib/csscss/types.rb', line 95 def inspect "<#{self.class} #{selectors}>" end |
#to_s ⇒ Object
91 92 93 |
# File 'lib/csscss/types.rb', line 91 def to_s selectors end |