Class: CSSPool::Selectors::Simple

Inherits:
Node
  • Object
show all
Defined in:
lib/csspool/selectors/simple.rb

Direct Known Subclasses

Type, Universal

Instance Attribute Summary collapse

Attributes inherited from Node

#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos

Instance Method Summary collapse

Methods inherited from Node

#==, #accept, #children, #each, #hash, #to_css, #to_minified_css

Constructor Details

#initialize(name, combinator = nil) ⇒ Simple

Returns a new instance of Simple.



10
11
12
13
14
15
# File 'lib/csspool/selectors/simple.rb', line 10

def initialize name, combinator = nil
  @name                 = name
  @combinator           = combinator
  @parse_location       = nil
  @additional_selectors = []
end

Instance Attribute Details

#additional_selectorsObject

Returns the value of attribute additional_selectors.



7
8
9
# File 'lib/csspool/selectors/simple.rb', line 7

def additional_selectors
  @additional_selectors
end

#combinatorObject

Returns the value of attribute combinator.



8
9
10
# File 'lib/csspool/selectors/simple.rb', line 8

def combinator
  @combinator
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/csspool/selectors/simple.rb', line 5

def name
  @name
end

#parse_locationObject

Returns the value of attribute parse_location.



6
7
8
# File 'lib/csspool/selectors/simple.rb', line 6

def parse_location
  @parse_location
end