You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Keywords with lower precedence than <code>=</code> can appear ambiguous when used after an endless method definition. This includes <code>and</code>, <code>or</code>, and the modifier forms of <code>if</code>, <code>unless</code>, <code>while</code>, and <code>until</code>. In these cases, the code may appear to include these keywords as part of the method body, but instead they actually modify the method definition itself.</p>
4512
+
</div>
4513
+
<divclass="paragraph">
4514
+
<p>In this cases, prefer using a normal method over an endless method.</p>
<p>Use <code>::</code> only to reference constants (this includes classes and modules) and constructors (like <code>Array()</code> or <code>Nokogiri::HTML()</code>).
0 commit comments