sass-site/source/documentation/Sass/Tree/RuleNode.html
2018-10-22 14:13:05 -07:00

1616 lines
46 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Class: Sass::Tree::RuleNode
&mdash; Documentation by YARD 0.9.12
</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="../../../assets/css/docs.css" type="text/css" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
hasFrames = window.top.frames.main ? true : false;
relpath = '../../';
framesUrl = "../../frames.html#!Sass/Tree/RuleNode.html";
</script>
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
</head>
<body>
<div id="header">
<div id="menu">
<a href="../../_index.html">Index (R)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Tree.html" title="Sass::Tree (module)">Tree</a></span></span>
&raquo;
<span class="title">RuleNode</span>
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
<div id="search">
<a class="full_list_link" id="class_list_link"
href="../../class_list.html">
Class List
</a>
<a class="full_list_link" id="method_list_link"
href="../../method_list.html">
Method List
</a>
<a class="full_list_link" id="file_list_link"
href="../../file_list.html">
File List
</a>
</div>
<div class="clear"></div>
</div>
<iframe id="search_frame"></iframe>
<div id="content"><h1>Class: Sass::Tree::RuleNode
</h1>
<dl class="box">
<dt class="r1">Inherits:</dt>
<dd class="r1">
<span class="inheritName"><span class='object_link'><a href="Node.html" title="Sass::Tree::Node (class)">Node</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Node.html" title="Sass::Tree::Node (class)">Node</a></span></li>
<li class="next">Sass::Tree::RuleNode</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
<dt class="r2 last">Defined in:</dt>
<dd class="r2 last">.ruby-sass/lib/sass/tree/rule_node.rb</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>A static node representing a CSS rule.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">See Also:</p>
<ul class="see">
<li><span class='object_link'><a href="../Tree.html" title="Sass::Tree (module)">Sass::Tree</a></span></li>
</ul>
</div>
<h2>Constant Summary</h2>
<dl class="constants">
<dt id="PARENT-constant" class="">PARENT =
<div class="docstring">
<div class="discussion">
<p>The character used to include the parent selector</p>
</div>
</div>
<div class="tags">
</div>
</dt>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>&amp;</span><span class='tstring_end'>&#39;</span></span></pre></dd>
</dl>
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#group_end-instance_method" title="#group_end (instance method)">#<strong>group_end</strong> &#x21d2; Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Whether or not this rule is the last rule in a nested group.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#parsed_rules-instance_method" title="#parsed_rules (instance method)">#<strong>parsed_rules</strong> &#x21d2; Selector::CommaSequence </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The CSS selector for this rule, without any unresolved interpolation but
with parent references still intact.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#resolved_rules-instance_method" title="#resolved_rules (instance method)">#<strong>resolved_rules</strong> &#x21d2; Selector::CommaSequence </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The CSS selector for this rule, without any unresolved interpolation or
parent references.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#rule-instance_method" title="#rule (instance method)">#<strong>rule</strong> &#x21d2; Array&lt;String, Sass::Script::Tree::Node&gt; </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The CSS selector for this rule, interspersed with
<span class='object_link'><a href="../Script/Tree/Node.html" title="Sass::Script::Tree::Node (class)">Script::Tree::Node</a></span>s representing `#{}`-interpolation.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#selector_source_range-instance_method" title="#selector_source_range (instance method)">#<strong>selector_source_range</strong> &#x21d2; Sass::Source::Range </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The entire selector source range for this rule.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#stack_trace-instance_method" title="#stack_trace (instance method)">#<strong>stack_trace</strong> &#x21d2; String </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The stack trace.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#tabs-instance_method" title="#tabs (instance method)">#<strong>tabs</strong> &#x21d2; Integer </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>How deep this rule is indented relative to a base-level rule.</p>
</div></span>
</li>
</ul>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Node.html" title="Sass::Tree::Node (class)">Node</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Node.html#children-instance_method" title="Sass::Tree::Node#children (method)">#children</a></span>, <span class='object_link'><a href="Node.html#filename-instance_method" title="Sass::Tree::Node#filename (method)">#filename</a></span>, <span class='object_link'><a href="Node.html#has_children-instance_method" title="Sass::Tree::Node#has_children (method)">#has_children</a></span>, <span class='object_link'><a href="Node.html#line-instance_method" title="Sass::Tree::Node#line (method)">#line</a></span>, <span class='object_link'><a href="Node.html#options-instance_method" title="Sass::Tree::Node#options (method)">#options</a></span>, <span class='object_link'><a href="Node.html#source_range-instance_method" title="Sass::Tree::Node#source_range (method)">#source_range</a></span></p>
<h2>
Instance Method Summary
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#==-instance_method" title="#== (instance method)">#<strong>==</strong>(other) &#x21d2; Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Compares the contents of two rules.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#add_rules-instance_method" title="#add_rules (instance method)">#<strong>add_rules</strong>(node) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Adds another <span class='object_link'><a href="" title="Sass::Tree::RuleNode (class)">RuleNode</a></span>&#39;s rules to this one&#39;s.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#continued%3F-instance_method" title="#continued? (instance method)">#<strong>continued?</strong> &#x21d2; Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Whether or not this rule is continued on the next line.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#debug_info-instance_method" title="#debug_info (instance method)">#<strong>debug_info</strong> &#x21d2; {#to_s =&gt; #to_s} </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>A hash that will be associated with this rule in the CSS document if the
<a href="../../file.SASS_REFERENCE.html#debug_info-option" title="`:debug_info` option">`:debug_info` option</a> is enabled.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#filename=-instance_method" title="#filename= (instance method)">#<strong>filename=</strong>(filename) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>If we&#39;ve precached the parsed selector, set the filename on it, too.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(rule, selector_source_range = nil) &#x21d2; RuleNode </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of RuleNode.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#invisible%3F-instance_method" title="#invisible? (instance method)">#<strong>invisible?</strong> &#x21d2; Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>A rule node is invisible if it has only placeholder selectors.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#line=-instance_method" title="#line= (instance method)">#<strong>line=</strong>(line) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>If we&#39;ve precached the parsed selector, set the line on it, too.</p>
</div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="Sass::Tree::Node (class)">Node</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Node.html#<<-instance_method" title="Sass::Tree::Node#&lt;&lt; (method)">#<<</a></span>, <span class='object_link'><a href="Node.html#bubbles%3F-instance_method" title="Sass::Tree::Node#bubbles? (method)">#bubbles?</a></span>, <span class='object_link'><a href="Node.html#css-instance_method" title="Sass::Tree::Node#css (method)">#css</a></span>, <span class='object_link'><a href="Node.html#css_with_sourcemap-instance_method" title="Sass::Tree::Node#css_with_sourcemap (method)">#css_with_sourcemap</a></span>, <span class='object_link'><a href="Node.html#deep_copy-instance_method" title="Sass::Tree::Node#deep_copy (method)">#deep_copy</a></span>, <span class='object_link'><a href="Node.html#each-instance_method" title="Sass::Tree::Node#each (method)">#each</a></span>, <span class='object_link'><a href="Node.html#inherited-class_method" title="Sass::Tree::Node.inherited (method)">inherited</a></span>, <span class='object_link'><a href="Node.html#inspect-instance_method" title="Sass::Tree::Node#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="Node.html#style-instance_method" title="Sass::Tree::Node#style (method)">#style</a></span>, <span class='object_link'><a href="Node.html#to_sass-instance_method" title="Sass::Tree::Node#to_sass (method)">#to_sass</a></span>, <span class='object_link'><a href="Node.html#to_scss-instance_method" title="Sass::Tree::Node#to_scss (method)">#to_scss</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
#<strong>initialize</strong>(rule, selector_source_range = nil) &#x21d2; <tt><span class='object_link'><a href="" title="Sass::Tree::RuleNode (class)">RuleNode</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of RuleNode</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>rule</span>
<span class='type'>(<tt>Array&lt;String, <span class='object_link'><a href="../Script/Tree/Node.html" title="Sass::Script::Tree::Node (class)">Sass::Script::Tree::Node</a></span>&gt;</tt>, <tt><span class='object_link'><a href="../Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Sass::Selector::CommaSequence</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The CSS rule, either unparsed or parsed.</p>
</div>
</li>
<li>
<span class='name'>selector_source_range</span>
<span class='type'>(<tt><span class='object_link'><a href="../Source/Range.html" title="Sass::Source::Range (class)">Sass::Source::Range</a></span></tt>)</span>
<em class="default">(defaults to: <tt>nil</tt>)</em>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
66
67
68
69
70
71
72
73
74
75
76
77
78</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 66</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_selector_source_range'>selector_source_range</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
<span class='kw'>if</span> <span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Selector.html" title="Sass::Selector (module)">Selector</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">CommaSequence</a></span></span><span class='rparen'>)</span>
<span class='ivar'>@rule</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbracket'>]</span>
<span class='ivar'>@parsed_rules</span> <span class='op'>=</span> <span class='id identifier rubyid_rule'>rule</span>
<span class='kw'>else</span>
<span class='id identifier rubyid_merged'>merged</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Util.html" title="Sass::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_merge_adjacent_strings'><span class='object_link'><a href="../Util.html#merge_adjacent_strings-instance_method" title="Sass::Util#merge_adjacent_strings (method)">merge_adjacent_strings</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='rparen'>)</span>
<span class='ivar'>@rule</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Util.html" title="Sass::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_strip_string_array'><span class='object_link'><a href="../Util.html#strip_string_array-instance_method" title="Sass::Util#strip_string_array (method)">strip_string_array</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_merged'>merged</span><span class='rparen'>)</span>
<span class='id identifier rubyid_try_to_parse_non_interpolated_rules'>try_to_parse_non_interpolated_rules</span>
<span class='kw'>end</span>
<span class='ivar'>@selector_source_range</span> <span class='op'>=</span> <span class='id identifier rubyid_selector_source_range'>selector_source_range</span>
<span class='ivar'>@tabs</span> <span class='op'>=</span> <span class='int'>0</span>
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
#<strong>initialize</strong>(rule, selector_source_range = nil) &#x21d2; <tt><span class='object_link'><a href="" title="Sass::Tree::RuleNode (class)">RuleNode</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of RuleNode</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>rule</span>
<span class='type'>(<tt>Array&lt;String, <span class='object_link'><a href="../Script/Tree/Node.html" title="Sass::Script::Tree::Node (class)">Sass::Script::Tree::Node</a></span>&gt;</tt>, <tt><span class='object_link'><a href="../Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Sass::Selector::CommaSequence</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The CSS rule, either unparsed or parsed.</p>
</div>
</li>
<li>
<span class='name'>selector_source_range</span>
<span class='type'>(<tt><span class='object_link'><a href="../Source/Range.html" title="Sass::Source::Range (class)">Sass::Source::Range</a></span></tt>)</span>
<em class="default">(defaults to: <tt>nil</tt>)</em>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
66
67
68
69
70
71
72
73
74
75
76
77
78</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 66</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_selector_source_range'>selector_source_range</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
<span class='kw'>if</span> <span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Selector.html" title="Sass::Selector (module)">Selector</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">CommaSequence</a></span></span><span class='rparen'>)</span>
<span class='ivar'>@rule</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbracket'>]</span>
<span class='ivar'>@parsed_rules</span> <span class='op'>=</span> <span class='id identifier rubyid_rule'>rule</span>
<span class='kw'>else</span>
<span class='id identifier rubyid_merged'>merged</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Util.html" title="Sass::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_merge_adjacent_strings'><span class='object_link'><a href="../Util.html#merge_adjacent_strings-instance_method" title="Sass::Util#merge_adjacent_strings (method)">merge_adjacent_strings</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='rparen'>)</span>
<span class='ivar'>@rule</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Util.html" title="Sass::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_strip_string_array'><span class='object_link'><a href="../Util.html#strip_string_array-instance_method" title="Sass::Util#strip_string_array (method)">strip_string_array</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_merged'>merged</span><span class='rparen'>)</span>
<span class='id identifier rubyid_try_to_parse_non_interpolated_rules'>try_to_parse_non_interpolated_rules</span>
<span class='kw'>end</span>
<span class='ivar'>@selector_source_range</span> <span class='op'>=</span> <span class='id identifier rubyid_selector_source_range'>selector_source_range</span>
<span class='ivar'>@tabs</span> <span class='op'>=</span> <span class='int'>0</span>
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="instance_attr_details" class="attr_details">
<h2>Instance Attribute Details</h2>
<span id="group_end=-instance_method"></span>
<div class="method_details first">
<h3 class="signature first" id="group_end-instance_method">
#<strong>group_end</strong> &#x21d2; <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Whether or not this rule is the last rule in a nested group. This is only
set in a CSS tree.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Boolean</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
54
55
56</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 54</span>
<span class='kw'>def</span> <span class='id identifier rubyid_group_end'>group_end</span>
<span class='ivar'>@group_end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="parsed_rules=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="parsed_rules-instance_method">
#<strong>parsed_rules</strong> &#x21d2; <tt><span class='object_link'><a href="../Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>The CSS selector for this rule, without any unresolved interpolation but
with parent references still intact. It&#39;s only guaranteed to be set
once <span class='object_link'><a href="Visitors/Perform.html" title="Sass::Tree::Visitors::Perform (class)">Visitors::Perform</a></span> has been run, but it may be set before then
for optimization reasons.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt><span class='object_link'><a href="../Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
25
26
27</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 25</span>
<span class='kw'>def</span> <span class='id identifier rubyid_parsed_rules'>parsed_rules</span>
<span class='ivar'>@parsed_rules</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="resolved_rules=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="resolved_rules-instance_method">
#<strong>resolved_rules</strong> &#x21d2; <tt><span class='object_link'><a href="../Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>The CSS selector for this rule, without any unresolved interpolation or
parent references. It&#39;s only set once <span class='object_link'><a href="Visitors/Perform.html" title="Sass::Tree::Visitors::Perform (class)">Visitors::Perform</a></span> has
been run.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt><span class='object_link'><a href="../Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
32
33
34</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 32</span>
<span class='kw'>def</span> <span class='id identifier rubyid_resolved_rules'>resolved_rules</span>
<span class='ivar'>@resolved_rules</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="rule=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="rule-instance_method">
#<strong>rule</strong> &#x21d2; <tt>Array&lt;String, <span class='object_link'><a href="../Script/Tree/Node.html" title="Sass::Script::Tree::Node (class)">Sass::Script::Tree::Node</a></span>&gt;</tt>
</h3><div class="docstring">
<div class="discussion">
<p>The CSS selector for this rule, interspersed with
<span class='object_link'><a href="../Script/Tree/Node.html" title="Sass::Script::Tree::Node (class)">Script::Tree::Node</a></span>s representing `#{}`-interpolation. Any adjacent
strings will be merged together.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Array&lt;String, <span class='object_link'><a href="../Script/Tree/Node.html" title="Sass::Script::Tree::Node (class)">Sass::Script::Tree::Node</a></span>&gt;</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
17
18
19</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 17</span>
<span class='kw'>def</span> <span class='id identifier rubyid_rule'>rule</span>
<span class='ivar'>@rule</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="selector_source_range=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="selector_source_range-instance_method">
#<strong>selector_source_range</strong> &#x21d2; <tt><span class='object_link'><a href="../Source/Range.html" title="Sass::Source::Range (class)">Sass::Source::Range</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>The entire selector source range for this rule.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt><span class='object_link'><a href="../Source/Range.html" title="Sass::Source::Range (class)">Sass::Source::Range</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
48
49
50</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 48</span>
<span class='kw'>def</span> <span class='id identifier rubyid_selector_source_range'>selector_source_range</span>
<span class='ivar'>@selector_source_range</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="stack_trace=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="stack_trace-instance_method">
#<strong>stack_trace</strong> &#x21d2; <tt>String</tt>
</h3><div class="docstring">
<div class="discussion">
<p>The stack trace. This is only readable in a CSS tree as it is written
during the perform step and only when the :trace_selectors option is set.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>String</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
61
62
63</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 61</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stack_trace'>stack_trace</span>
<span class='ivar'>@stack_trace</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="tabs=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="tabs-instance_method">
#<strong>tabs</strong> &#x21d2; <tt>Integer</tt>
</h3><div class="docstring">
<div class="discussion">
<p>How deep this rule is indented relative to a base-level rule. This is only
greater than 0 in the case that:</p>
<ul><li>
<p>This node is in a CSS tree</p>
</li><li>
<p>The style is :nested</p>
</li><li>
<p>This is a child rule of another rule</p>
</li><li>
<p>The parent rule has properties, and thus will be rendered</p>
</li></ul>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Integer</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
44
45
46</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 44</span>
<span class='kw'>def</span> <span class='id identifier rubyid_tabs'>tabs</span>
<span class='ivar'>@tabs</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
<h3 class="signature first" id="==-instance_method">
#<strong>==</strong>(other) &#x21d2; <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Compares the contents of two rules.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>other</span>
<span class='type'>(<tt>Object</tt>)</span>
&mdash;
<div class='inline'>
<p>The object to compare with</p>
</div>
</li>
</ul>
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>Whether or not this node and the other object are the same</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
97
98
99</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 97</span>
<span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_rule'>rule</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_rule'>rule</span> <span class='op'>&amp;&amp;</span> <span class='kw'>super</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="add_rules-instance_method">
#<strong>add_rules</strong>(node) &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Adds another <span class='object_link'><a href="" title="Sass::Tree::RuleNode (class)">Sass::Tree::RuleNode</a></span>&#39;s rules to this one&#39;s.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>node</span>
<span class='type'>(<tt><span class='object_link'><a href="" title="Sass::Tree::RuleNode (class)">RuleNode</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The other node</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
104
105
106
107
108</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 104</span>
<span class='kw'>def</span> <span class='id identifier rubyid_add_rules'>add_rules</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='rparen'>)</span>
<span class='ivar'>@rule</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Util.html" title="Sass::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_strip_string_array'><span class='object_link'><a href="../Util.html#strip_string_array-instance_method" title="Sass::Util#strip_string_array (method)">strip_string_array</a></span></span><span class='lparen'>(</span>
<span class='const'><span class='object_link'><a href="../../Sass.html" title="Sass (module)">Sass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Util.html" title="Sass::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_merge_adjacent_strings'><span class='object_link'><a href="../Util.html#merge_adjacent_strings-instance_method" title="Sass::Util#merge_adjacent_strings (method)">merge_adjacent_strings</a></span></span><span class='lparen'>(</span><span class='ivar'>@rule</span> <span class='op'>+</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>+</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_rule'>rule</span><span class='rparen'>)</span><span class='rparen'>)</span>
<span class='id identifier rubyid_try_to_parse_non_interpolated_rules'>try_to_parse_non_interpolated_rules</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="continued?-instance_method">
#<strong>continued?</strong> &#x21d2; <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns Whether or not this rule is continued on the next line</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>Whether or not this rule is continued on the next line</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
111
112
113
114</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 111</span>
<span class='kw'>def</span> <span class='id identifier rubyid_continued?'>continued?</span>
<span class='id identifier rubyid_last'>last</span> <span class='op'>=</span> <span class='ivar'>@rule</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
<span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_last'>last</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='CHAR'>?,</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="debug_info-instance_method">
#<strong>debug_info</strong> &#x21d2; <tt>{#to_s =&gt; #to_s}</tt>
</h3><div class="docstring">
<div class="discussion">
<p>A hash that will be associated with this rule in the CSS document if the
<a href="../../file.SASS_REFERENCE.html#debug_info-option" title="`:debug_info` option">`:debug_info` option</a> is enabled.
This data is used by e.g. [the FireSass Firebug extension](<a
href="https://addons.mozilla.org/en-US/firefox/addon/103988">addons.mozilla.org/en-US/firefox/addon/103988</a>).</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>{#to_s =&gt; #to_s}</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
122
123
124
125
126</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 122</span>
<span class='kw'>def</span> <span class='id identifier rubyid_debug_info'>debug_info</span>
<span class='lbrace'>{</span><span class='symbol'>:filename</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_filename'>filename</span> <span class='op'>&amp;&amp;</span>
<span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>file://</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span> <span class='const'>URI</span><span class='op'>::</span><span class='const'>DEFAULT_PARSER</span><span class='period'>.</span><span class='id identifier rubyid_escape'>escape</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='comma'>,</span>
<span class='symbol'>:line</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_line'>line</span><span class='rbrace'>}</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="filename=-instance_method">
#<strong>filename=</strong>(filename) &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>If we&#39;ve precached the parsed selector, set the filename on it, too.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
87
88
89
90</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 87</span>
<span class='kw'>def</span> <span class='id identifier rubyid_filename='>filename=</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span>
<span class='ivar'>@parsed_rules</span><span class='period'>.</span><span class='id identifier rubyid_filename'>filename</span> <span class='op'>=</span> <span class='id identifier rubyid_filename'>filename</span> <span class='kw'>if</span> <span class='ivar'>@parsed_rules</span>
<span class='kw'>super</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="invisible?-instance_method">
#<strong>invisible?</strong> &#x21d2; <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>A rule node is invisible if it has only placeholder selectors.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Boolean</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
129
130
131</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 129</span>
<span class='kw'>def</span> <span class='id identifier rubyid_invisible?'>invisible?</span>
<span class='id identifier rubyid_resolved_rules'>resolved_rules</span><span class='period'>.</span><span class='id identifier rubyid_members'>members</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_seq'>seq</span><span class='op'>|</span> <span class='id identifier rubyid_seq'>seq</span><span class='period'>.</span><span class='id identifier rubyid_invisible?'>invisible?</span><span class='rbrace'>}</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="line=-instance_method">
#<strong>line=</strong>(line) &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>If we&#39;ve precached the parsed selector, set the line on it, too.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
81
82
83
84</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/tree/rule_node.rb', line 81</span>
<span class='kw'>def</span> <span class='id identifier rubyid_line='>line=</span><span class='lparen'>(</span><span class='id identifier rubyid_line'>line</span><span class='rparen'>)</span>
<span class='ivar'>@parsed_rules</span><span class='period'>.</span><span class='id identifier rubyid_line'>line</span> <span class='op'>=</span> <span class='id identifier rubyid_line'>line</span> <span class='kw'>if</span> <span class='ivar'>@parsed_rules</span>
<span class='kw'>super</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Mon Oct 22 13:20:59 2018 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.12 (ruby-2.5.3).
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-535380-14', 'sass-lang.com');
ga('send', 'pageview');
</script>
</body>
</html>