mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Deploying to gh-pages from @ 80532da357
🚀
This commit is contained in:
parent
5691d407a5
commit
017e9a8722
121 changed files with 1270 additions and 1270 deletions
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="generator" content="Crystal Docs 1.4.1">
|
||||
<meta name="generator" content="Crystal Docs 1.5.0">
|
||||
<meta name="crystal_docs.project_version" content="master">
|
||||
<meta name="crystal_docs.project_name" content="ameba">
|
||||
|
||||
|
@ -898,7 +898,7 @@ that are tested by this rule, it should add an issue.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L29" target="_blank">
|
||||
ameba/rule/base.cr
|
||||
</a>
|
||||
|
||||
|
@ -1098,7 +1098,7 @@ that are tested by this rule, it should add an issue.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L161" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L161" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1135,7 +1135,7 @@ that are tested by this rule, it should add an issue.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L107" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L107" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1152,14 +1152,14 @@ that are tested by this rule, it should add an issue.</p>
|
|||
|
||||
<p>A convenient addition to <code><a href="../../Ameba/Rule/Base.html#test%28source%3ASource%2Cnode%3ACrystal%3A%3AASTNode%2C%2Aopts%29-instance-method">#test</a></code> method that does the same
|
||||
but returns a passed in <code>source</code> as an addition.</p>
|
||||
<pre><code class="language-crystal">source <span class="o">=</span> <span class="t">MyRule</span>.<span class="k">new</span>.catch(source)
|
||||
<pre><code class="language-crystal">source <span class="o">=</span> <span class="t">MyRule</span>.new.catch(source)
|
||||
source.valid?</code></pre>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L52" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L52" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1183,7 +1183,7 @@ the one of the given source.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L90" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L90" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1203,13 +1203,13 @@ the one of the given source.</p>
|
|||
<span class="c"># ...</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="t">MyGroup</span><span class="t">::</span><span class="t">MyRule</span>.<span class="k">new</span>.group <span class="c"># => "MyGroup"</span></code></pre>
|
||||
<span class="t">MyGroup</span><span class="t">::</span><span class="t">MyRule</span>.new.group <span class="c"># => "MyGroup"</span></code></pre>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L79" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L79" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1239,7 +1239,7 @@ though usually the macro <code>def_hash</code> can be used to generate this meth
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L111" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L111" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1260,13 +1260,13 @@ though usually the macro <code>def_hash</code> can be used to generate this meth
|
|||
<span class="k">end</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="t">MyRule</span>.<span class="k">new</span>.name <span class="c"># => "MyRule"</span></code></pre>
|
||||
<span class="t">MyRule</span>.new.name <span class="c"># => "MyRule"</span></code></pre>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L66" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L66" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1289,7 +1289,7 @@ usual rules.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L103" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L103" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1305,7 +1305,7 @@ usual rules.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L41" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L41" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1329,7 +1329,7 @@ Must be overriten for other type of rules.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L37" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L37" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1357,7 +1357,7 @@ Must be overriten for other type of rules.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/base.cr#L115" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/base.cr#L115" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue