Method: CSSPool::Node#outer_start_pos
- Defined in:
- lib/csspool/node.rb
#outer_start_pos ⇒ Object
These give the position of this node in the source CSS. Not all node types are supported. “Outer” represents the start/end of this node, “inner” represents the start/end of this node’s children. Outer will not contain leading or trailing comments or whitespace, while inner will. For example, in this code:
1 /* test1 */ 2 @document domain(‘example.com’) { 3 /* test2 */ 4 * { color: blue; } 5 /* test3 */ 6 } /* test4 */
The index will represent the position: outer_start_pos: 2:0 inner_start_pos: 2:33 inner_end_pos: 6:0 outer_end_pos: 6:1
25 26 27 |
# File 'lib/csspool/node.rb', line 25 def outer_start_pos @outer_start_pos end |