-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rmosolgo
committed
Nov 2, 2023
1 parent
6eacfa4
commit 394ee1f
Showing
470 changed files
with
249,654 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,290 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title> | ||
Module: Base64Bp | ||
|
||
— GraphQL Ruby API Documentation | ||
|
||
</title> | ||
|
||
<link rel="stylesheet" href="css/style.css" type="text/css" /> | ||
|
||
<link rel="stylesheet" href="css/common.css" type="text/css" /> | ||
|
||
<script type="text/javascript"> | ||
pathId = "Base64Bp"; | ||
relpath = ''; | ||
</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 class="nav_wrap"> | ||
<iframe id="nav" src="class_list.html?1"></iframe> | ||
<div id="resizer"></div> | ||
</div> | ||
|
||
<div id="main" tabindex="-1"> | ||
<div id="header"> | ||
<div id="menu"> | ||
|
||
<a href="_index.html">Index (B)</a> » | ||
|
||
|
||
<span class="title">Base64Bp</span> | ||
|
||
</div> | ||
|
||
<div id="search"> | ||
|
||
<a class="full_list_link" id="class_list_link" | ||
href="class_list.html"> | ||
|
||
<svg width="24" height="24"> | ||
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect> | ||
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect> | ||
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect> | ||
</svg> | ||
</a> | ||
|
||
</div> | ||
<div class="clear"></div> | ||
</div> | ||
|
||
<div id="content"><h1>Module: Base64Bp | ||
|
||
|
||
<span class="private note title">Private</span> | ||
</h1> | ||
<div class="box_info"> | ||
|
||
|
||
|
||
|
||
<dl> | ||
<dt>Extended by:</dt> | ||
<dd>Base64</dd> | ||
</dl> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl> | ||
<dt>Defined in:</dt> | ||
<dd>lib/graphql/schema/base_64_bp.rb</dd> | ||
</dl> | ||
|
||
</div> | ||
|
||
<h2>Overview</h2><div class="docstring"> | ||
<div class="discussion"> | ||
<p class="note private"> | ||
<strong>This module is part of a private API.</strong> | ||
You should avoid using this module if possible, as it may be removed or be changed in the future. | ||
</p> | ||
<p>backport from ruby v2.5 to v2.2 that has no <code>padding</code> things</p> | ||
|
||
|
||
</div> | ||
</div> | ||
<div class="tags"> | ||
|
||
|
||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h2> | ||
Class Method Summary | ||
<small><a href="#" class="summary_toggle">collapse</a></small> | ||
</h2> | ||
|
||
<ul class="summary"> | ||
|
||
<li class="public "> | ||
<span class="summary_signature"> | ||
|
||
<a href="#urlsafe_decode64-class_method" title="urlsafe_decode64 (class method)">.<strong>urlsafe_decode64</strong>(str) ⇒ Object </a> | ||
|
||
|
||
|
||
</span> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<span class="private note title">private</span> | ||
|
||
|
||
<span class="summary_desc"><div class='inline'> | ||
</div></span> | ||
|
||
</li> | ||
|
||
|
||
<li class="public "> | ||
<span class="summary_signature"> | ||
|
||
<a href="#urlsafe_encode64-class_method" title="urlsafe_encode64 (class method)">.<strong>urlsafe_encode64</strong>(bin, padding:) ⇒ Object </a> | ||
|
||
|
||
|
||
</span> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<span class="private note title">private</span> | ||
|
||
|
||
<span class="summary_desc"><div class='inline'> | ||
</div></span> | ||
|
||
</li> | ||
|
||
|
||
</ul> | ||
|
||
|
||
|
||
|
||
|
||
<div id="class_method_details" class="method_details_list"> | ||
<h2>Class Method Details</h2> | ||
|
||
|
||
<div class="method_details first"> | ||
<h3 class="signature first" id="urlsafe_decode64-class_method"> | ||
|
||
.<strong>urlsafe_decode64</strong>(str) ⇒ <tt>Object</tt> | ||
|
||
|
||
|
||
|
||
|
||
</h3><div class="docstring"> | ||
<div class="discussion"> | ||
<p class="note private"> | ||
<strong>This method is part of a private API.</strong> | ||
You should avoid using this method if possible, as it may be removed or be changed in the future. | ||
</p> | ||
|
||
|
||
|
||
</div> | ||
</div> | ||
<div class="tags"> | ||
|
||
|
||
</div><table class="source_code"> | ||
<tr> | ||
<td> | ||
<pre class="lines"> | ||
|
||
|
||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25</pre> | ||
</td> | ||
<td> | ||
<pre class="code"><span class="info file"># File 'lib/graphql/schema/base_64_bp.rb', line 19</span> | ||
|
||
<span class='kw'>def</span> <span class='id identifier rubyid_urlsafe_decode64'>urlsafe_decode64</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='rparen'>)</span> | ||
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_tr'>tr</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-_</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>+/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> | ||
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_end_with?'>end_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>%</span> <span class='int'>4</span> <span class='op'>!=</span> <span class='int'>0</span> | ||
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_ljust'>ljust</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>+</span> <span class='int'>3</span><span class='rparen'>)</span> <span class='op'>&</span> <span class='op'>~</span><span class='int'>3</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> | ||
<span class='kw'>end</span> | ||
<span class='id identifier rubyid_strict_decode64'>strict_decode64</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='rparen'>)</span> | ||
<span class='kw'>end</span></pre> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
<div class="method_details "> | ||
<h3 class="signature " id="urlsafe_encode64-class_method"> | ||
|
||
.<strong>urlsafe_encode64</strong>(bin, padding:) ⇒ <tt>Object</tt> | ||
|
||
|
||
|
||
|
||
|
||
</h3><div class="docstring"> | ||
<div class="discussion"> | ||
<p class="note private"> | ||
<strong>This method is part of a private API.</strong> | ||
You should avoid using this method if possible, as it may be removed or be changed in the future. | ||
</p> | ||
|
||
|
||
|
||
</div> | ||
</div> | ||
<div class="tags"> | ||
|
||
|
||
</div><table class="source_code"> | ||
<tr> | ||
<td> | ||
<pre class="lines"> | ||
|
||
|
||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17</pre> | ||
</td> | ||
<td> | ||
<pre class="code"><span class="info file"># File 'lib/graphql/schema/base_64_bp.rb', line 12</span> | ||
|
||
<span class='kw'>def</span> <span class='id identifier rubyid_urlsafe_encode64'>urlsafe_encode64</span><span class='lparen'>(</span><span class='id identifier rubyid_bin'>bin</span><span class='comma'>,</span> <span class='label'>padding:</span><span class='rparen'>)</span> | ||
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_strict_encode64'>strict_encode64</span><span class='lparen'>(</span><span class='id identifier rubyid_bin'>bin</span><span class='rparen'>)</span> | ||
<span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_tr!'>tr!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>+/</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-_</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> | ||
<span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_delete!'>delete!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id identifier rubyid_padding'>padding</span> | ||
<span class='id identifier rubyid_str'>str</span> | ||
<span class='kw'>end</span></pre> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div id="footer"> | ||
Generated on Thu Nov 2 13:59:26 2023 by | ||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> | ||
0.9.28 (ruby-3.2.2). | ||
</div> | ||
|
||
</div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.