forked from faker-ruby/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
264 changed files
with
112,643 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,294 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title> | ||
Class: Faker::Alphanumeric | ||
|
||
— Documentation by YARD 0.9.18 | ||
|
||
</title> | ||
|
||
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" /> | ||
|
||
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" /> | ||
|
||
<script type="text/javascript" charset="utf-8"> | ||
pathId = "Faker::Alphanumeric"; | ||
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 (A)</a> » | ||
<span class='title'><span class='object_link'><a href="../Faker.html" title="Faker (module)">Faker</a></span></span> | ||
» | ||
<span class="title">Alphanumeric</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>Class: Faker::Alphanumeric | ||
|
||
|
||
|
||
</h1> | ||
<div class="box_info"> | ||
|
||
<dl> | ||
<dt>Inherits:</dt> | ||
<dd> | ||
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Faker::Base (class)">Base</a></span></span> | ||
|
||
<ul class="fullTree"> | ||
<li>Object</li> | ||
|
||
<li class="next"><span class='object_link'><a href="Base.html" title="Faker::Base (class)">Base</a></span></li> | ||
|
||
<li class="next">Faker::Alphanumeric</li> | ||
|
||
</ul> | ||
<a href="#" class="inheritanceTree">show all</a> | ||
|
||
</dd> | ||
</dl> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl> | ||
<dt>Defined in:</dt> | ||
<dd>lib/faker/default/alphanumeric.rb</dd> | ||
</dl> | ||
|
||
</div> | ||
|
||
|
||
|
||
<h2> | ||
Constant Summary | ||
<small><a href="#" class="constants_summary_toggle">collapse</a></small> | ||
</h2> | ||
|
||
<dl class="constants"> | ||
|
||
<dt id="ALPHABET-constant" class="">ALPHABET = | ||
|
||
</dt> | ||
<dd><pre class="code"><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>a</span><span class='tstring_end'>'</span></span><span class='op'>..</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>z</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span></pre></dd> | ||
|
||
<dt id="ALPHANUMS-constant" class="">ALPHANUMS = | ||
|
||
</dt> | ||
<dd><pre class="code"><span class='const'><span class='object_link'><a href="#ALPHABET-constant" title="Faker::Alphanumeric::ALPHABET (constant)">ALPHABET</a></span></span> <span class='op'>+</span> <span class='lparen'>(</span><span class='int'>0</span><span class='op'>..</span><span class='int'>9</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span></pre></dd> | ||
|
||
</dl> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<h3 class="inherited">Constants inherited | ||
from <span class='object_link'><a href="Base.html" title="Faker::Base (class)">Base</a></span></h3> | ||
<p class="inherited"><span class='object_link'><a href="Base.html#Letters-constant" title="Faker::Base::Letters (constant)">Base::Letters</a></span>, <span class='object_link'><a href="Base.html#Numbers-constant" title="Faker::Base::Numbers (constant)">Base::Numbers</a></span>, <span class='object_link'><a href="Base.html#ULetters-constant" title="Faker::Base::ULetters (constant)">Base::ULetters</a></span></p> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<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="#alpha-class_method" title="alpha (class method)">.<strong>alpha</strong>(char_count = 32) ⇒ Object </a> | ||
|
||
|
||
|
||
</span> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<span class="summary_desc"><div class='inline'></div></span> | ||
|
||
</li> | ||
|
||
|
||
<li class="public "> | ||
<span class="summary_signature"> | ||
|
||
<a href="#alphanumeric-class_method" title="alphanumeric (class method)">.<strong>alphanumeric</strong>(char_count = 32) ⇒ 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="Base.html" title="Faker::Base (class)">Base</a></span></h3> | ||
<p class="inherited"><span class='object_link'><a href="Base.html#bothify-class_method" title="Faker::Base.bothify (method)">bothify</a></span>, <span class='object_link'><a href="Base.html#disable_enforce_available_locales-class_method" title="Faker::Base.disable_enforce_available_locales (method)">disable_enforce_available_locales</a></span>, <span class='object_link'><a href="Base.html#fetch-class_method" title="Faker::Base.fetch (method)">fetch</a></span>, <span class='object_link'><a href="Base.html#fetch_all-class_method" title="Faker::Base.fetch_all (method)">fetch_all</a></span>, <span class='object_link'><a href="Base.html#flexible-class_method" title="Faker::Base.flexible (method)">flexible</a></span>, <span class='object_link'><a href="Base.html#letterify-class_method" title="Faker::Base.letterify (method)">letterify</a></span>, <span class='object_link'><a href="Base.html#method_missing-class_method" title="Faker::Base.method_missing (method)">method_missing</a></span>, <span class='object_link'><a href="Base.html#numerify-class_method" title="Faker::Base.numerify (method)">numerify</a></span>, <span class='object_link'><a href="Base.html#parse-class_method" title="Faker::Base.parse (method)">parse</a></span>, <span class='object_link'><a href="Base.html#rand-class_method" title="Faker::Base.rand (method)">rand</a></span>, <span class='object_link'><a href="Base.html#rand_in_range-class_method" title="Faker::Base.rand_in_range (method)">rand_in_range</a></span>, <span class='object_link'><a href="Base.html#regexify-class_method" title="Faker::Base.regexify (method)">regexify</a></span>, <span class='object_link'><a href="Base.html#resolve-class_method" title="Faker::Base.resolve (method)">resolve</a></span>, <span class='object_link'><a href="Base.html#respond_to_missing%3F-class_method" title="Faker::Base.respond_to_missing? (method)">respond_to_missing?</a></span>, <span class='object_link'><a href="Base.html#sample-class_method" title="Faker::Base.sample (method)">sample</a></span>, <span class='object_link'><a href="Base.html#shuffle-class_method" title="Faker::Base.shuffle (method)">shuffle</a></span>, <span class='object_link'><a href="Base.html#translate-class_method" title="Faker::Base.translate (method)">translate</a></span>, <span class='object_link'><a href="Base.html#unique-class_method" title="Faker::Base.unique (method)">unique</a></span>, <span class='object_link'><a href="Base.html#with_locale-class_method" title="Faker::Base.with_locale (method)">with_locale</a></span></p> | ||
|
||
|
||
<div id="class_method_details" class="method_details_list"> | ||
<h2>Class Method Details</h2> | ||
|
||
|
||
<div class="method_details first"> | ||
<h3 class="signature first" id="alpha-class_method"> | ||
|
||
.<strong>alpha</strong>(char_count = 32) ⇒ <tt>Object</tt> | ||
|
||
|
||
|
||
|
||
|
||
</h3><table class="source_code"> | ||
<tr> | ||
<td> | ||
<pre class="lines"> | ||
|
||
|
||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14</pre> | ||
</td> | ||
<td> | ||
<pre class="code"><span class="info file"># File 'lib/faker/default/alphanumeric.rb', line 9</span> | ||
|
||
<span class='kw'>def</span> <span class='id identifier rubyid_alpha'>alpha</span><span class='lparen'>(</span><span class='id identifier rubyid_char_count'>char_count</span> <span class='op'>=</span> <span class='int'>32</span><span class='rparen'>)</span> | ||
<span class='id identifier rubyid_char_count'>char_count</span> <span class='op'>=</span> <span class='id identifier rubyid_resolve'>resolve</span><span class='lparen'>(</span><span class='id identifier rubyid_char_count'>char_count</span><span class='rparen'>)</span> | ||
<span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_char_count'>char_count</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'><</span> <span class='int'>1</span> | ||
|
||
<span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_char_count'>char_count</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_sample'>sample</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#ALPHABET-constant" title="Faker::Alphanumeric::ALPHABET (constant)">ALPHABET</a></span></span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> | ||
<span class='kw'>end</span></pre> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
<div class="method_details "> | ||
<h3 class="signature " id="alphanumeric-class_method"> | ||
|
||
.<strong>alphanumeric</strong>(char_count = 32) ⇒ <tt>Object</tt> | ||
|
||
|
||
|
||
|
||
|
||
</h3><table class="source_code"> | ||
<tr> | ||
<td> | ||
<pre class="lines"> | ||
|
||
|
||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21</pre> | ||
</td> | ||
<td> | ||
<pre class="code"><span class="info file"># File 'lib/faker/default/alphanumeric.rb', line 16</span> | ||
|
||
<span class='kw'>def</span> <span class='id identifier rubyid_alphanumeric'>alphanumeric</span><span class='lparen'>(</span><span class='id identifier rubyid_char_count'>char_count</span> <span class='op'>=</span> <span class='int'>32</span><span class='rparen'>)</span> | ||
<span class='id identifier rubyid_char_count'>char_count</span> <span class='op'>=</span> <span class='id identifier rubyid_resolve'>resolve</span><span class='lparen'>(</span><span class='id identifier rubyid_char_count'>char_count</span><span class='rparen'>)</span> | ||
<span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_char_count'>char_count</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'><</span> <span class='int'>1</span> | ||
|
||
<span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_char_count'>char_count</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_sample'>sample</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#ALPHANUMS-constant" title="Faker::Alphanumeric::ALPHANUMS (constant)">ALPHANUMS</a></span></span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> | ||
<span class='kw'>end</span></pre> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div id="footer"> | ||
Generated on Thu Feb 14 19:39:56 2019 by | ||
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> | ||
0.9.18 (ruby-2.6.1). | ||
</div> | ||
|
||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.