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

818 lines
20 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::Supports::Operator
&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/Supports/Operator.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 (O)</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="../Supports.html" title="Sass::Supports (module)">Supports</a></span></span>
&raquo;
<span class="title">Operator</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::Supports::Operator
</h1>
<dl class="box">
<dt class="r1">Inherits:</dt>
<dd class="r1">
<span class="inheritName"><span class='object_link'><a href="Condition.html" title="Sass::Supports::Condition (class)">Condition</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Condition.html" title="Sass::Supports::Condition (class)">Condition</a></span></li>
<li class="next">Sass::Supports::Operator</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/supports.rb</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>An operator condition (e.g. `CONDITION1 and CONDITION2`).</p>
</div>
</div>
<div class="tags">
</div>
<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="#left-instance_method" title="#left (instance method)">#<strong>left</strong> &#x21d2; Sass::Supports::Condition </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The left-hand condition.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#op-instance_method" title="#op (instance method)">#<strong>op</strong> &#x21d2; String </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The operator (“and” or “or”).</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#right-instance_method" title="#right (instance method)">#<strong>right</strong> &#x21d2; Sass::Supports::Condition </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The right-hand condition.</p>
</div></span>
</li>
</ul>
<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="#deep_copy-instance_method" title="#deep_copy (instance method)">#<strong>deep_copy</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(left, right, op) &#x21d2; Operator </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of Operator.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#options=-instance_method" title="#options= (instance method)">#<strong>options=</strong>(options) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#perform-instance_method" title="#perform (instance method)">#<strong>perform</strong>(env) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#to_css-instance_method" title="#to_css (instance method)">#<strong>to_css</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#to_src-instance_method" title="#to_src (instance method)">#<strong>to_src</strong>(options) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<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>(left, right, op) &#x21d2; <tt><span class='object_link'><a href="" title="Sass::Supports::Operator (class)">Operator</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of Operator</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
49
50
51
52
53</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 49</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_left'>left</span><span class='comma'>,</span> <span class='id identifier rubyid_right'>right</span><span class='comma'>,</span> <span class='id identifier rubyid_op'>op</span><span class='rparen'>)</span>
<span class='ivar'>@left</span> <span class='op'>=</span> <span class='id identifier rubyid_left'>left</span>
<span class='ivar'>@right</span> <span class='op'>=</span> <span class='id identifier rubyid_right'>right</span>
<span class='ivar'>@op</span> <span class='op'>=</span> <span class='id identifier rubyid_op'>op</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>(left, right, op) &#x21d2; <tt><span class='object_link'><a href="" title="Sass::Supports::Operator (class)">Operator</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of Operator</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
49
50
51
52
53</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 49</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_left'>left</span><span class='comma'>,</span> <span class='id identifier rubyid_right'>right</span><span class='comma'>,</span> <span class='id identifier rubyid_op'>op</span><span class='rparen'>)</span>
<span class='ivar'>@left</span> <span class='op'>=</span> <span class='id identifier rubyid_left'>left</span>
<span class='ivar'>@right</span> <span class='op'>=</span> <span class='id identifier rubyid_right'>right</span>
<span class='ivar'>@op</span> <span class='op'>=</span> <span class='id identifier rubyid_op'>op</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="left=-instance_method"></span>
<div class="method_details first">
<h3 class="signature first" id="left-instance_method">
#<strong>left</strong> &#x21d2; <tt><span class='object_link'><a href="Condition.html" title="Sass::Supports::Condition (class)">Sass::Supports::Condition</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>The left-hand condition.</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="Condition.html" title="Sass::Supports::Condition (class)">Sass::Supports::Condition</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
37
38
39</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 37</span>
<span class='kw'>def</span> <span class='id identifier rubyid_left'>left</span>
<span class='ivar'>@left</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="op=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="op-instance_method">
#<strong>op</strong> &#x21d2; <tt>String</tt>
</h3><div class="docstring">
<div class="discussion">
<p>The operator (“and” or “or”).</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">
47
48
49</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 47</span>
<span class='kw'>def</span> <span class='id identifier rubyid_op'>op</span>
<span class='ivar'>@op</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="right=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="right-instance_method">
#<strong>right</strong> &#x21d2; <tt><span class='object_link'><a href="Condition.html" title="Sass::Supports::Condition (class)">Sass::Supports::Condition</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>The right-hand condition.</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="Condition.html" title="Sass::Supports::Condition (class)">Sass::Supports::Condition</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
42
43
44</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 42</span>
<span class='kw'>def</span> <span class='id identifier rubyid_right'>right</span>
<span class='ivar'>@right</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="deep_copy-instance_method">
#<strong>deep_copy</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
68
69
70
71
72
73</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 68</span>
<span class='kw'>def</span> <span class='id identifier rubyid_deep_copy'>deep_copy</span>
<span class='id identifier rubyid_copy'>copy</span> <span class='op'>=</span> <span class='id identifier rubyid_dup'>dup</span>
<span class='id identifier rubyid_copy'>copy</span><span class='period'>.</span><span class='id identifier rubyid_left'>left</span> <span class='op'>=</span> <span class='ivar'>@left</span><span class='period'>.</span><span class='id identifier rubyid_deep_copy'>deep_copy</span>
<span class='id identifier rubyid_copy'>copy</span><span class='period'>.</span><span class='id identifier rubyid_right'>right</span> <span class='op'>=</span> <span class='ivar'>@right</span><span class='period'>.</span><span class='id identifier rubyid_deep_copy'>deep_copy</span>
<span class='id identifier rubyid_copy'>copy</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="options=-instance_method">
#<strong>options=</strong>(options) &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
75
76
77
78</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 75</span>
<span class='kw'>def</span> <span class='id identifier rubyid_options='>options=</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
<span class='ivar'>@left</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span>
<span class='ivar'>@right</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="perform-instance_method">
#<strong>perform</strong>(env) &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
55
56
57
58</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 55</span>
<span class='kw'>def</span> <span class='id identifier rubyid_perform'>perform</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
<span class='ivar'>@left</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
<span class='ivar'>@right</span><span class='period'>.</span><span class='id identifier rubyid_perform'>perform</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="to_css-instance_method">
#<strong>to_css</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
60
61
62</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 60</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_css'>to_css</span>
<span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_parens'>parens</span> <span class='ivar'>@left</span><span class='comma'>,</span> <span class='ivar'>@left</span><span class='period'>.</span><span class='id identifier rubyid_to_css'>to_css</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_op'>op</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_parens'>parens</span> <span class='ivar'>@right</span><span class='comma'>,</span> <span class='ivar'>@right</span><span class='period'>.</span><span class='id identifier rubyid_to_css'>to_css</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="to_src-instance_method">
#<strong>to_src</strong>(options) &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
64
65
66</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/supports.rb', line 64</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_src'>to_src</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
<span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_parens'>parens</span> <span class='ivar'>@left</span><span class='comma'>,</span> <span class='ivar'>@left</span><span class='period'>.</span><span class='id identifier rubyid_to_src'>to_src</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_op'>op</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_parens'>parens</span> <span class='ivar'>@right</span><span class='comma'>,</span> <span class='ivar'>@right</span><span class='period'>.</span><span class='id identifier rubyid_to_src'>to_src</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Mon Oct 22 13:20:57 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>