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

1725 lines
47 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::Script::Tree::Interpolation
&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/Script/Tree/Interpolation.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 (I)</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="../../Script.html" title="Sass::Script (module)">Script</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Tree.html" title="Sass::Script::Tree (module)">Tree</a></span></span>
&raquo;
<span class="title">Interpolation</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::Script::Tree::Interpolation
</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::Script::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::Script::Tree::Node (class)">Node</a></span></li>
<li class="next">Sass::Script::Tree::Interpolation</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/script/tree/interpolation.rb</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>A SassScript object representing `#{}` interpolation outside a string.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">See Also:</p>
<ul class="see">
<li><span class='object_link'><a href="StringInterpolation.html" title="Sass::Script::Tree::StringInterpolation (class)">StringInterpolation</a></span></li>
</ul>
</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="#after-instance_method" title="#after (instance method)">#<strong>after</strong> &#x21d2; Node </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The SassScript after the interpolation.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#before-instance_method" title="#before (instance method)">#<strong>before</strong> &#x21d2; Node </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The SassScript before the interpolation.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#deprecation-instance_method" title="#deprecation (instance method)">#<strong>deprecation</strong> &#x21d2; Symbol </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The type of interpolation deprecation for this node.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#mid-instance_method" title="#mid (instance method)">#<strong>mid</strong> &#x21d2; Node </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The SassScript within the interpolation.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#originally_text-instance_method" title="#originally_text (instance method)">#<strong>originally_text</strong> &#x21d2; Boolean </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Whether the original format of the interpolation was plain text, not an
interpolation.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#warn_for_color-instance_method" title="#warn_for_color (instance method)">#<strong>warn_for_color</strong> &#x21d2; Boolean </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Whether a color value passed to the interpolation should generate a
warning.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#whitespace_after-instance_method" title="#whitespace_after (instance method)">#<strong>whitespace_after</strong> &#x21d2; Boolean </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Whether there was whitespace between `}` and `after`.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#whitespace_before-instance_method" title="#whitespace_before (instance method)">#<strong>whitespace_before</strong> &#x21d2; Boolean </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Whether there was whitespace between `before` and `#{`.</p>
</div></span>
</li>
</ul>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Node.html#filename-instance_method" title="Sass::Script::Tree::Node#filename (method)">#filename</a></span>, <span class='object_link'><a href="Node.html#line-instance_method" title="Sass::Script::Tree::Node#line (method)">#line</a></span>, <span class='object_link'><a href="Node.html#options-instance_method" title="Sass::Script::Tree::Node#options (method)">#options</a></span>, <span class='object_link'><a href="Node.html#source_range-instance_method" title="Sass::Script::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="#children-instance_method" title="#children (instance method)">#<strong>children</strong> &#x21d2; Array&lt;Node&gt; </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the three components of the interpolation, `before`, `mid`, and
`after`.</p>
</div></span>
</li>
<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>(before, mid, after, wb, wa, opts = {}) &#x21d2; Interpolation </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>Interpolation in a property is of the form `before #<span class='object_link'><a href="#mid-instance_method" title="Sass::Script::Tree::Interpolation#mid (method)">#mid</a></span> after`.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#inspect-instance_method" title="#inspect (instance method)">#<strong>inspect</strong> &#x21d2; String </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>A human-readable s-expression representation of the interpolation.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#to_quoted_equivalent-instance_method" title="#to_quoted_equivalent (instance method)">#<strong>to_quoted_equivalent</strong> &#x21d2; Sass::Script::Tree::Node </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns an `unquote()` expression that will evaluate to the same value as
this interpolation.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#to_sass-instance_method" title="#to_sass (instance method)">#<strong>to_sass</strong>(opts = {}) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Node.html#force_division!-instance_method" title="Sass::Script::Tree::Node#force_division! (method)">#force_division!</a></span>, <span class='object_link'><a href="Node.html#perform-instance_method" title="Sass::Script::Tree::Node#perform (method)">#perform</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>(before, mid, after, wb, wa, opts = {}) &#x21d2; <tt><span class='object_link'><a href="" title="Sass::Script::Tree::Interpolation (class)">Interpolation</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Interpolation in a property is of the form `before #<span class='object_link'><a href="#mid-instance_method" title="Sass::Script::Tree::Interpolation#mid (method)">#mid</a></span> after`.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>before</span>
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#before-instance_method" title="Sass::Script::Tree::Interpolation#before (method)">#before</a></span></p>
</div>
</li>
<li>
<span class='name'>mid</span>
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#mid-instance_method" title="Sass::Script::Tree::Interpolation#mid (method)">#mid</a></span></p>
</div>
</li>
<li>
<span class='name'>after</span>
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#after-instance_method" title="Sass::Script::Tree::Interpolation#after (method)">#after</a></span></p>
</div>
</li>
<li>
<span class='name'>wb</span>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#whitespace_before-instance_method" title="Sass::Script::Tree::Interpolation#whitespace_before (method)">#whitespace_before</a></span></p>
</div>
</li>
<li>
<span class='name'>wa</span>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#whitespace_after-instance_method" title="Sass::Script::Tree::Interpolation#whitespace_after (method)">#whitespace_after</a></span></p>
</div>
</li>
<li>
<span class='name'>originally_text</span>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#originally_text-instance_method" title="Sass::Script::Tree::Interpolation#originally_text (method)">#originally_text</a></span></p>
</div>
</li>
<li>
<span class='name'>warn_for_color</span>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#warn_for_color-instance_method" title="Sass::Script::Tree::Interpolation#warn_for_color (method)">#warn_for_color</a></span></p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
52
53
54
55
56
57
58
59
60
61
62</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 52</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_before'>before</span><span class='comma'>,</span> <span class='id identifier rubyid_mid'>mid</span><span class='comma'>,</span> <span class='id identifier rubyid_after'>after</span><span class='comma'>,</span> <span class='id identifier rubyid_wb'>wb</span><span class='comma'>,</span> <span class='id identifier rubyid_wa'>wa</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
<span class='comment'># rubocop:enable ParameterLists
</span> <span class='ivar'>@before</span> <span class='op'>=</span> <span class='id identifier rubyid_before'>before</span>
<span class='ivar'>@mid</span> <span class='op'>=</span> <span class='id identifier rubyid_mid'>mid</span>
<span class='ivar'>@after</span> <span class='op'>=</span> <span class='id identifier rubyid_after'>after</span>
<span class='ivar'>@whitespace_before</span> <span class='op'>=</span> <span class='id identifier rubyid_wb'>wb</span>
<span class='ivar'>@whitespace_after</span> <span class='op'>=</span> <span class='id identifier rubyid_wa'>wa</span>
<span class='ivar'>@originally_text</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:originally_text</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
<span class='ivar'>@warn_for_color</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:warn_for_color</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
<span class='ivar'>@deprecation</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:deprecation</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='symbol'>:none</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>(before, mid, after, wb, wa, opts = {}) &#x21d2; <tt><span class='object_link'><a href="" title="Sass::Script::Tree::Interpolation (class)">Interpolation</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Interpolation in a property is of the form `before #<span class='object_link'><a href="#mid-instance_method" title="Sass::Script::Tree::Interpolation#mid (method)">#mid</a></span> after`.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>before</span>
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#before-instance_method" title="Sass::Script::Tree::Interpolation#before (method)">#before</a></span></p>
</div>
</li>
<li>
<span class='name'>mid</span>
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#mid-instance_method" title="Sass::Script::Tree::Interpolation#mid (method)">#mid</a></span></p>
</div>
</li>
<li>
<span class='name'>after</span>
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#after-instance_method" title="Sass::Script::Tree::Interpolation#after (method)">#after</a></span></p>
</div>
</li>
<li>
<span class='name'>wb</span>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#whitespace_before-instance_method" title="Sass::Script::Tree::Interpolation#whitespace_before (method)">#whitespace_before</a></span></p>
</div>
</li>
<li>
<span class='name'>wa</span>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#whitespace_after-instance_method" title="Sass::Script::Tree::Interpolation#whitespace_after (method)">#whitespace_after</a></span></p>
</div>
</li>
<li>
<span class='name'>originally_text</span>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#originally_text-instance_method" title="Sass::Script::Tree::Interpolation#originally_text (method)">#originally_text</a></span></p>
</div>
</li>
<li>
<span class='name'>warn_for_color</span>
<span class='type'>(<tt>Boolean</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#warn_for_color-instance_method" title="Sass::Script::Tree::Interpolation#warn_for_color (method)">#warn_for_color</a></span></p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
52
53
54
55
56
57
58
59
60
61
62</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 52</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_before'>before</span><span class='comma'>,</span> <span class='id identifier rubyid_mid'>mid</span><span class='comma'>,</span> <span class='id identifier rubyid_after'>after</span><span class='comma'>,</span> <span class='id identifier rubyid_wb'>wb</span><span class='comma'>,</span> <span class='id identifier rubyid_wa'>wa</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
<span class='comment'># rubocop:enable ParameterLists
</span> <span class='ivar'>@before</span> <span class='op'>=</span> <span class='id identifier rubyid_before'>before</span>
<span class='ivar'>@mid</span> <span class='op'>=</span> <span class='id identifier rubyid_mid'>mid</span>
<span class='ivar'>@after</span> <span class='op'>=</span> <span class='id identifier rubyid_after'>after</span>
<span class='ivar'>@whitespace_before</span> <span class='op'>=</span> <span class='id identifier rubyid_wb'>wb</span>
<span class='ivar'>@whitespace_after</span> <span class='op'>=</span> <span class='id identifier rubyid_wa'>wa</span>
<span class='ivar'>@originally_text</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:originally_text</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
<span class='ivar'>@warn_for_color</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:warn_for_color</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
<span class='ivar'>@deprecation</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:deprecation</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='symbol'>:none</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=""></span>
<div class="method_details first">
<h3 class="signature first" id="after-instance_method">
#<strong>after</strong> &#x21d2; <tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns The SassScript after the interpolation</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="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The SassScript after the interpolation</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
13
14
15</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 13</span>
<span class='kw'>def</span> <span class='id identifier rubyid_after'>after</span>
<span class='ivar'>@after</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="before-instance_method">
#<strong>before</strong> &#x21d2; <tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns The SassScript before the interpolation</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="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The SassScript before the interpolation</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
7
8
9</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 7</span>
<span class='kw'>def</span> <span class='id identifier rubyid_before'>before</span>
<span class='ivar'>@before</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="deprecation-instance_method">
#<strong>deprecation</strong> &#x21d2; <tt>Symbol</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>The type of interpolation deprecation for this node.</p>
<p>This can be `:none`, indicating that the node doesn&#39;t use deprecated
interpolation; `:immediate`, indicating that a deprecation warning should
be emitted as soon as possible; or `:potential`, indicating that a
deprecation warning should be emitted if the resulting string is used in a
way that would distinguish it from a list.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Symbol</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
39
40
41</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 39</span>
<span class='kw'>def</span> <span class='id identifier rubyid_deprecation'>deprecation</span>
<span class='ivar'>@deprecation</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="mid-instance_method">
#<strong>mid</strong> &#x21d2; <tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns The SassScript within the interpolation</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="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The SassScript within the interpolation</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
10
11
12</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 10</span>
<span class='kw'>def</span> <span class='id identifier rubyid_mid'>mid</span>
<span class='ivar'>@mid</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="originally_text-instance_method">
#<strong>originally_text</strong> &#x21d2; <tt>Boolean</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns Whether the original format of the interpolation was plain text,
not an interpolation. This is used when converting back to SassScript.</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 the original format of the interpolation was plain text, not an
interpolation. This is used when converting back to SassScript.</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
24
25
26</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 24</span>
<span class='kw'>def</span> <span class='id identifier rubyid_originally_text'>originally_text</span>
<span class='ivar'>@originally_text</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="warn_for_color-instance_method">
#<strong>warn_for_color</strong> &#x21d2; <tt>Boolean</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns Whether a color value passed to the interpolation should generate a
warning.</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 a color value passed to the interpolation should generate a
warning.</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
28
29
30</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 28</span>
<span class='kw'>def</span> <span class='id identifier rubyid_warn_for_color'>warn_for_color</span>
<span class='ivar'>@warn_for_color</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="whitespace_after-instance_method">
#<strong>whitespace_after</strong> &#x21d2; <tt>Boolean</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns Whether there was whitespace between `}` and `after`</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 there was whitespace between `}` and `after`</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
19
20
21</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 19</span>
<span class='kw'>def</span> <span class='id identifier rubyid_whitespace_after'>whitespace_after</span>
<span class='ivar'>@whitespace_after</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="whitespace_before-instance_method">
#<strong>whitespace_before</strong> &#x21d2; <tt>Boolean</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns Whether there was whitespace between `before` and `#{`</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 there was whitespace between `before` and `#{`</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
16
17
18</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 16</span>
<span class='kw'>def</span> <span class='id identifier rubyid_whitespace_before'>whitespace_before</span>
<span class='ivar'>@whitespace_before</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="children-instance_method">
#<strong>children</strong> &#x21d2; <tt>Array&lt;<span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span>&gt;</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the three components of the interpolation, `before`, `mid`, and
`after`.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Array&lt;<span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Node</a></span>&gt;</tt>)</span>
</li>
</ul>
<p class="tag_title">See Also:</p>
<ul class="see">
<li><span class='object_link'><a href="#initialize-instance_method" title="Sass::Script::Tree::Interpolation#initialize (method)">#initialize</a></span></li>
<li><span class='object_link'><a href="Node.html#children-instance_method" title="Sass::Script::Tree::Node#children (method)">Node#children</a></span></li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
102
103
104</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 102</span>
<span class='kw'>def</span> <span class='id identifier rubyid_children'>children</span>
<span class='lbracket'>[</span><span class='ivar'>@before</span><span class='comma'>,</span> <span class='ivar'>@mid</span><span class='comma'>,</span> <span class='ivar'>@after</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="deep_copy-instance_method">
#<strong>deep_copy</strong> &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
</div>
</div>
<div class="tags">
<p class="tag_title">See Also:</p>
<ul class="see">
<li><span class='object_link'><a href="Node.html#deep_copy-instance_method" title="Sass::Script::Tree::Node#deep_copy (method)">Node#deep_copy</a></span></li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
107
108
109
110
111
112
113</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 107</span>
<span class='kw'>def</span> <span class='id identifier rubyid_deep_copy'>deep_copy</span>
<span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='id identifier rubyid_dup'>dup</span>
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>@before</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='ivar'>@before</span><span class='period'>.</span><span class='id identifier rubyid_deep_copy'>deep_copy</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@before</span>
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>@mid</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='ivar'>@mid</span><span class='period'>.</span><span class='id identifier rubyid_deep_copy'>deep_copy</span><span class='rparen'>)</span>
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>@after</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='ivar'>@after</span><span class='period'>.</span><span class='id identifier rubyid_deep_copy'>deep_copy</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@after</span>
<span class='id identifier rubyid_node'>node</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="inspect-instance_method">
#<strong>inspect</strong> &#x21d2; <tt>String</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns A human-readable s-expression representation of the interpolation</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>String</tt>)</span>
&mdash;
<div class='inline'>
<p>A human-readable s-expression representation of the interpolation</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
65
66
67</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 65</span>
<span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
<span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(interpolation </span><span class='embexpr_beg'>#{</span><span class='ivar'>@before</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@mid</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@after</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</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_quoted_equivalent-instance_method">
#<strong>to_quoted_equivalent</strong> &#x21d2; <tt><span class='object_link'><a href="Node.html" title="Sass::Script::Tree::Node (class)">Sass::Script::Tree::Node</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns an `unquote()` expression that will evaluate to the same value as
this interpolation.</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="Node.html" title="Sass::Script::Tree::Node (class)">Sass::Script::Tree::Node</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
88
89
90
91
92
93
94
95</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 88</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_quoted_equivalent'>to_quoted_equivalent</span>
<span class='const'><span class='object_link'><a href="Funcall.html" title="Sass::Script::Tree::Funcall (class)">Funcall</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Funcall.html#initialize-instance_method" title="Sass::Script::Tree::Funcall#initialize (method)">new</a></span></span><span class='lparen'>(</span>
<span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unquote</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
<span class='lbracket'>[</span><span class='id identifier rubyid_to_string_interpolation'>to_string_interpolation</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='comma'>,</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='op'>::</span><span class='const'><span class='object_link'><a href="../../Util/NormalizedMap.html" title="Sass::Util::NormalizedMap (class)">NormalizedMap</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../../Util/NormalizedMap.html#initialize-instance_method" title="Sass::Util::NormalizedMap#initialize (method)">new</a></span></span><span class='comma'>,</span>
<span class='kw'>nil</span><span class='comma'>,</span>
<span class='kw'>nil</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="to_sass-instance_method">
#<strong>to_sass</strong>(opts = {}) &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
</div>
</div>
<div class="tags">
<p class="tag_title">See Also:</p>
<ul class="see">
<li><span class='object_link'><a href="Node.html#to_sass-instance_method" title="Sass::Script::Tree::Node#to_sass (method)">Node#to_sass</a></span></li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
70
71
72
73
74
75
76
77
78
79
80
81
82</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/script/tree/interpolation.rb', line 70</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_sass'>to_sass</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
<span class='kw'>return</span> <span class='id identifier rubyid_to_quoted_equivalent'>to_quoted_equivalent</span><span class='period'>.</span><span class='id identifier rubyid_to_sass'>to_sass</span> <span class='kw'>if</span> <span class='id identifier rubyid_deprecation'>deprecation</span> <span class='op'>==</span> <span class='symbol'>:immediate</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>&lt;&lt;</span> <span class='ivar'>@before</span><span class='period'>.</span><span class='id identifier rubyid_to_sass'>to_sass</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@before</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='ivar'>@before</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@whitespace_before</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>#{</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>unless</span> <span class='ivar'>@originally_text</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>&lt;&lt;</span> <span class='ivar'>@mid</span><span class='period'>.</span><span class='id identifier rubyid_to_sass'>to_sass</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>}</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>unless</span> <span class='ivar'>@originally_text</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='ivar'>@after</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@whitespace_after</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>&lt;&lt;</span> <span class='ivar'>@after</span><span class='period'>.</span><span class='id identifier rubyid_to_sass'>to_sass</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@after</span>
<span class='id identifier rubyid_res'>res</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Mon Oct 22 13:20:53 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>