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

841 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::Source::Range
&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/Source/Range.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="../Source.html" title="Sass::Source (module)">Source</a></span></span>
&raquo;
<span class="title">Range</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::Source::Range
</h1>
<dl class="box">
<dt class="r1">Inherits:</dt>
<dd class="r1">
<span class="inheritName">Object</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">Sass::Source::Range</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/source/range.rb</dd>
</dl>
<div class="clear"></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="#end_pos-instance_method" title="#end_pos (instance method)">#<strong>end_pos</strong> &#x21d2; Sass::Source::Position </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The ending position of the range in the document (exclusive).</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#file-instance_method" title="#file (instance method)">#<strong>file</strong> &#x21d2; String </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The file in which this source range appears.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#importer-instance_method" title="#importer (instance method)">#<strong>importer</strong> &#x21d2; Sass::Importers::Base </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The importer that imported the file in which this source range appears.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#start_pos-instance_method" title="#start_pos (instance method)">#<strong>start_pos</strong> &#x21d2; Sass::Source::Position </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The starting position of the range in the document (inclusive).</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="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(start_pos, end_pos, file, importer = nil) &#x21d2; Range </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of Range.</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 string representation of the source range.</p>
</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>(start_pos, end_pos, file, importer = nil) &#x21d2; <tt><span class='object_link'><a href="" title="Sass::Source::Range (class)">Range</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of Range</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>start_pos</span>
<span class='type'>(<tt><span class='object_link'><a href="Position.html" title="Sass::Source::Position (class)">Sass::Source::Position</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#start_pos-instance_method" title="Sass::Source::Range#start_pos (method)">#start_pos</a></span></p>
</div>
</li>
<li>
<span class='name'>end_pos</span>
<span class='type'>(<tt><span class='object_link'><a href="Position.html" title="Sass::Source::Position (class)">Sass::Source::Position</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#end_pos-instance_method" title="Sass::Source::Range#end_pos (method)">#end_pos</a></span></p>
</div>
</li>
<li>
<span class='name'>file</span>
<span class='type'>(<tt>String</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#file-instance_method" title="Sass::Source::Range#file (method)">#file</a></span></p>
</div>
</li>
<li>
<span class='name'>importer</span>
<span class='type'>(<tt><span class='object_link'><a href="../Importers/Base.html" title="Sass::Importers::Base (class)">Sass::Importers::Base</a></span></tt>)</span>
<em class="default">(defaults to: <tt>nil</tt>)</em>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#importer-instance_method" title="Sass::Source::Range#importer (method)">#importer</a></span></p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
29
30
31
32
33
34</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/source/range.rb', line 29</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_start_pos'>start_pos</span><span class='comma'>,</span> <span class='id identifier rubyid_end_pos'>end_pos</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_importer'>importer</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
<span class='ivar'>@start_pos</span> <span class='op'>=</span> <span class='id identifier rubyid_start_pos'>start_pos</span>
<span class='ivar'>@end_pos</span> <span class='op'>=</span> <span class='id identifier rubyid_end_pos'>end_pos</span>
<span class='ivar'>@file</span> <span class='op'>=</span> <span class='id identifier rubyid_file'>file</span>
<span class='ivar'>@importer</span> <span class='op'>=</span> <span class='id identifier rubyid_importer'>importer</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>(start_pos, end_pos, file, importer = nil) &#x21d2; <tt><span class='object_link'><a href="" title="Sass::Source::Range (class)">Range</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of Range</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>start_pos</span>
<span class='type'>(<tt><span class='object_link'><a href="Position.html" title="Sass::Source::Position (class)">Sass::Source::Position</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#start_pos-instance_method" title="Sass::Source::Range#start_pos (method)">#start_pos</a></span></p>
</div>
</li>
<li>
<span class='name'>end_pos</span>
<span class='type'>(<tt><span class='object_link'><a href="Position.html" title="Sass::Source::Position (class)">Sass::Source::Position</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#end_pos-instance_method" title="Sass::Source::Range#end_pos (method)">#end_pos</a></span></p>
</div>
</li>
<li>
<span class='name'>file</span>
<span class='type'>(<tt>String</tt>)</span>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#file-instance_method" title="Sass::Source::Range#file (method)">#file</a></span></p>
</div>
</li>
<li>
<span class='name'>importer</span>
<span class='type'>(<tt><span class='object_link'><a href="../Importers/Base.html" title="Sass::Importers::Base (class)">Sass::Importers::Base</a></span></tt>)</span>
<em class="default">(defaults to: <tt>nil</tt>)</em>
&mdash;
<div class='inline'>
<p>See <span class='object_link'><a href="#importer-instance_method" title="Sass::Source::Range#importer (method)">#importer</a></span></p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
29
30
31
32
33
34</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/source/range.rb', line 29</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_start_pos'>start_pos</span><span class='comma'>,</span> <span class='id identifier rubyid_end_pos'>end_pos</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_importer'>importer</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
<span class='ivar'>@start_pos</span> <span class='op'>=</span> <span class='id identifier rubyid_start_pos'>start_pos</span>
<span class='ivar'>@end_pos</span> <span class='op'>=</span> <span class='id identifier rubyid_end_pos'>end_pos</span>
<span class='ivar'>@file</span> <span class='op'>=</span> <span class='id identifier rubyid_file'>file</span>
<span class='ivar'>@importer</span> <span class='op'>=</span> <span class='id identifier rubyid_importer'>importer</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="end_pos=-instance_method"></span>
<div class="method_details first">
<h3 class="signature first" id="end_pos-instance_method">
#<strong>end_pos</strong> &#x21d2; <tt><span class='object_link'><a href="Position.html" title="Sass::Source::Position (class)">Sass::Source::Position</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>The ending position of the range in the document (exclusive).</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="Position.html" title="Sass::Source::Position (class)">Sass::Source::Position</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/source/range.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_end_pos'>end_pos</span>
<span class='ivar'>@end_pos</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="file=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="file-instance_method">
#<strong>file</strong> &#x21d2; <tt>String</tt>
</h3><div class="docstring">
<div class="discussion">
<p>The file in which this source range appears. This can be nil if the file is
unknown or not yet generated.</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">
17
18
19</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/source/range.rb', line 17</span>
<span class='kw'>def</span> <span class='id identifier rubyid_file'>file</span>
<span class='ivar'>@file</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="importer=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="importer-instance_method">
#<strong>importer</strong> &#x21d2; <tt><span class='object_link'><a href="../Importers/Base.html" title="Sass::Importers::Base (class)">Sass::Importers::Base</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>The importer that imported the file in which this source range appears.
This is nil for target ranges.</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="../Importers/Base.html" title="Sass::Importers::Base (class)">Sass::Importers::Base</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
23
24
25</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/source/range.rb', line 23</span>
<span class='kw'>def</span> <span class='id identifier rubyid_importer'>importer</span>
<span class='ivar'>@importer</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id="start_pos=-instance_method"></span>
<div class="method_details ">
<h3 class="signature " id="start_pos-instance_method">
#<strong>start_pos</strong> &#x21d2; <tt><span class='object_link'><a href="Position.html" title="Sass::Source::Position (class)">Sass::Source::Position</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>The starting position of the range in the document (inclusive).</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="Position.html" title="Sass::Source::Position (class)">Sass::Source::Position</a></span></tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8</pre>
</td>
<td>
<pre class="code"><span class="info file"># File '.ruby-sass/lib/sass/source/range.rb', line 6</span>
<span class='kw'>def</span> <span class='id identifier rubyid_start_pos'>start_pos</span>
<span class='ivar'>@start_pos</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="inspect-instance_method">
#<strong>inspect</strong> &#x21d2; <tt>String</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns A string representation of the source range.</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 string representation of the source range.</p>
</div>
</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/source/range.rb', line 37</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'>(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_start_pos'>start_pos</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> to </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_end_pos'>end_pos</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> in </span><span class='embexpr_beg'>#{</span><span class='ivar'>@file</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@file</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>
</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>