doc/R509/ASN1/GeneralName.html in r509-0.10.0 vs doc/R509/ASN1/GeneralName.html in r509-1.0
- old
+ new
@@ -1,106 +1,108 @@
-<!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">
+<!DOCTYPE html>
+<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: R509::ASN1::GeneralName
- — Documentation by YARD 0.8.6.1
+ — Documentation by YARD 0.9.5
</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">
- hasFrames = window.top.frames.main ? true : false;
+ pathId = "R509::ASN1::GeneralName";
relpath = '../../';
- framesUrl = "../../frames.html#!" + escape(window.location.href);
</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">
+ <div class="nav_wrap">
+ <iframe id="nav" src="../../class_list.html"></iframe>
+ <div id="resizer"></div>
+ </div>
+
+ <div id="main" tabindex="-1">
+ <div id="header">
+ <div id="menu">
<a href="../../_index.html">Index (G)</a> »
<span class='title'><span class='object_link'><a href="../../R509.html" title="R509 (module)">R509</a></span></span> » <span class='title'><span class='object_link'><a href="../ASN1.html" title="R509::ASN1 (module)">ASN1</a></span></span>
»
<span class="title">GeneralName</span>
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
- <div id="search">
+ <div id="search">
<a class="full_list_link" id="class_list_link"
href="../../class_list.html">
- Class List
+
+ <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>
- <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>
+ <div class="clear"></div>
+ </div>
- <iframe id="search_frame"></iframe>
+ <iframe id="search_frame" src="../../class_list.html"></iframe>
- <div id="content"><h1>Class: R509::ASN1::GeneralName
+ <div id="content"><h1>Class: R509::ASN1::GeneralName
</h1>
-
-<dl class="box">
+<div class="box_info">
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
+ <dl>
+ <dt>Inherits:</dt>
+ <dd>
<span class="inheritName">Object</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">R509::ASN1::GeneralName</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
- </dd>
-
+ </dd>
+ </dl>
+
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/r509/asn1.rb</dd>
+
-</dl>
-<div class="clear"></div>
+
+ <dl>
+ <dt>Defined in:</dt>
+ <dd>lib/r509/asn1.rb</dd>
+ </dl>
+
+</div>
+
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>This class parses ASN.1 GeneralName objects. At the moment it supports
rfc822Name, dNSName, directoryName, uniformResourceIdentifier, and
@@ -125,17 +127,17 @@
</div>
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
+ <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="#short_type-instance_method" title="#short_type (instance method)">- (Object) <strong>short_type</strong> </a>
+ <a href="#short_type-instance_method" title="#short_type (instance method)">#<strong>short_type</strong> ⇒ Object </a>
</span>
@@ -160,11 +162,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#tag-instance_method" title="#tag (instance method)">- (Object) <strong>tag</strong> </a>
+ <a href="#tag-instance_method" title="#tag (instance method)">#<strong>tag</strong> ⇒ Object </a>
</span>
@@ -189,11 +191,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#type-instance_method" title="#type (instance method)">- (Object) <strong>type</strong> </a>
+ <a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Object </a>
</span>
@@ -219,11 +221,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#value-instance_method" title="#value (instance method)">- (Object) <strong>value</strong> </a>
+ <a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> ⇒ Object </a>
</span>
@@ -253,19 +255,19 @@
<h2>
Class Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ <small><a href="#" class="summary_toggle">collapse</a></small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#map_tag_to_short_type-class_method" title="map_tag_to_short_type (class method)">+ (String) <strong>map_tag_to_short_type</strong>(tag) </a>
+ <a href="#map_tag_to_short_type-class_method" title="map_tag_to_short_type (class method)">.<strong>map_tag_to_short_type</strong>(tag) ⇒ String </a>
</span>
@@ -285,11 +287,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#map_tag_to_type-class_method" title="map_tag_to_type (class method)">+ (Symbol) <strong>map_tag_to_type</strong>(tag) </a>
+ <a href="#map_tag_to_type-class_method" title="map_tag_to_type (class method)">.<strong>map_tag_to_type</strong>(tag) ⇒ Symbol </a>
</span>
@@ -309,11 +311,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#map_type_to_tag-class_method" title="map_type_to_tag (class method)">+ (Integer) <strong>map_type_to_tag</strong>(type) </a>
+ <a href="#map_type_to_tag-class_method" title="map_type_to_tag (class method)">.<strong>map_type_to_tag</strong>(type) ⇒ Integer </a>
</span>
@@ -334,19 +336,19 @@
</ul>
<h2>
Instance Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ <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)">- (GeneralName) <strong>initialize</strong>(asn) </a>
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(asn) ⇒ GeneralName </a>
</span>
@@ -368,11 +370,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#serialize_name-instance_method" title="#serialize_name (instance method)">- (Hash) <strong>serialize_name</strong> </a>
+ <a href="#serialize_name-instance_method" title="#serialize_name (instance method)">#<strong>serialize_name</strong> ⇒ Hash </a>
</span>
@@ -393,11 +395,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#to_h-instance_method" title="#to_h (instance method)">- (Hash) <strong>to_h</strong> </a>
+ <a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
</span>
@@ -421,20 +423,20 @@
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
- - (<tt><span class='object_link'><a href="" title="R509::ASN1::GeneralName (class)">GeneralName</a></span></tt>) <strong>initialize</strong>(asn)
+ #<strong>initialize</strong>(asn) ⇒ <tt><span class='object_link'><a href="" title="R509::ASN1::GeneralName (class)">GeneralName</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>A new instance of GeneralName</p>
+<p>Returns a new instance of GeneralName</p>
</div>
</div>
<div class="tags">
@@ -464,24 +466,24 @@
<tr>
<td>
<pre class="lines">
-79
-80
-81
-82
-83
-84
-85
-86</pre>
+93
+94
+95
+96
+97
+98
+99
+100</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 79</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 93</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_asn'>asn</span><span class='rparen'>)</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_asn'>asn</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_asn'>asn</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
<span class='comment'># this is added via create_item
</span> <span class='id identifier rubyid_parse_hash'>parse_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_asn'>asn</span><span class='rparen'>)</span>
<span class='kw'>else</span>
<span class='id identifier rubyid_parse_asn'>parse_asn</span><span class='lparen'>(</span><span class='id identifier rubyid_asn'>asn</span><span class='rparen'>)</span>
<span class='kw'>end</span>
@@ -499,11 +501,11 @@
<span id=""></span>
<div class="method_details first">
<h3 class="signature first" id="short_type-instance_method">
- - (<tt>Object</tt>) <strong>short_type</strong> <span class="extras">(readonly)</span>
+ #<strong>short_type</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -523,16 +525,16 @@
<tr>
<td>
<pre class="lines">
-72
-73
-74</pre>
+86
+87
+88</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 72</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 86</span>
<span class='kw'>def</span> <span class='id identifier rubyid_short_type'>short_type</span>
<span class='ivar'>@short_type</span>
<span class='kw'>end</span></pre>
</td>
@@ -543,11 +545,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="tag-instance_method">
- - (<tt>Object</tt>) <strong>tag</strong> <span class="extras">(readonly)</span>
+ #<strong>tag</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -566,16 +568,16 @@
<tr>
<td>
<pre class="lines">
-76
-77
-78</pre>
+90
+91
+92</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 76</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 90</span>
<span class='kw'>def</span> <span class='id identifier rubyid_tag'>tag</span>
<span class='ivar'>@tag</span>
<span class='kw'>end</span></pre>
</td>
@@ -586,11 +588,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="type-instance_method">
- - (<tt>Object</tt>) <strong>type</strong> <span class="extras">(readonly)</span>
+ #<strong>type</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -610,16 +612,16 @@
<tr>
<td>
<pre class="lines">
-69
-70
-71</pre>
+83
+84
+85</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 69</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 83</span>
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
<span class='ivar'>@type</span>
<span class='kw'>end</span></pre>
</td>
@@ -630,11 +632,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="value-instance_method">
- - (<tt>Object</tt>) <strong>value</strong> <span class="extras">(readonly)</span>
+ #<strong>value</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -653,16 +655,16 @@
<tr>
<td>
<pre class="lines">
-74
-75
-76</pre>
+88
+89
+90</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 74</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 88</span>
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
<span class='ivar'>@value</span>
<span class='kw'>end</span></pre>
</td>
@@ -678,20 +680,20 @@
<div class="method_details first">
<h3 class="signature first" id="map_tag_to_short_type-class_method">
- + (<tt>String</tt>) <strong>map_tag_to_short_type</strong>(tag)
+ .<strong>map_tag_to_short_type</strong>(tag) ⇒ <tt>String</tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Serial prefix</p>
+<p>Returns serial prefix</p>
</div>
</div>
<div class="tags">
@@ -734,24 +736,24 @@
<tr>
<td>
<pre class="lines">
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126</pre>
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 116</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 130</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_map_tag_to_short_type'>map_tag_to_short_type</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='rparen'>)</span>
<span class='kw'>case</span> <span class='id identifier rubyid_tag'>tag</span>
<span class='kw'>when</span> <span class='int'>1</span> <span class='kw'>then</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>email</span><span class='tstring_end'>"</span></span>
<span class='kw'>when</span> <span class='int'>2</span> <span class='kw'>then</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DNS</span><span class='tstring_end'>"</span></span>
@@ -768,20 +770,20 @@
</div>
<div class="method_details ">
<h3 class="signature " id="map_tag_to_type-class_method">
- + (<tt>Symbol</tt>) <strong>map_tag_to_type</strong>(tag)
+ .<strong>map_tag_to_type</strong>(tag) ⇒ <tt>Symbol</tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Symbol type</p>
+<p>Returns symbol type</p>
</div>
</div>
<div class="tags">
@@ -824,28 +826,28 @@
<tr>
<td>
<pre class="lines">
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144</pre>
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 130</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 144</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_map_tag_to_type'>map_tag_to_type</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='rparen'>)</span>
<span class='kw'>case</span> <span class='id identifier rubyid_tag'>tag</span>
<span class='kw'>when</span> <span class='int'>0</span> <span class='kw'>then</span> <span class='symbol'>:otherName</span>
<span class='kw'>when</span> <span class='int'>1</span> <span class='kw'>then</span> <span class='symbol'>:rfc822Name</span>
@@ -866,11 +868,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="map_type_to_tag-class_method">
- + (<tt>Integer</tt>) <strong>map_type_to_tag</strong>(type)
+ .<strong>map_type_to_tag</strong>(type) ⇒ <tt>Integer</tt>
@@ -927,35 +929,35 @@
<tr>
<td>
<pre class="lines">
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
105
106
107
108
109
110
111
-112</pre>
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 91</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 105</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_map_type_to_tag'>map_type_to_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
<span class='comment'># otherName [0] OtherName,
</span> <span class='comment'># rfc822Name [1] IA5String,
</span> <span class='comment'># dNSName [2] IA5String,
@@ -989,11 +991,11 @@
<div class="method_details first">
<h3 class="signature first" id="serialize_name-instance_method">
- - (<tt>Hash</tt>) <strong>serialize_name</strong>
+ #<strong>serialize_name</strong> ⇒ <tt>Hash</tt>
@@ -1031,21 +1033,21 @@
<tr>
<td>
<pre class="lines">
-169
-170
-171
-172
-173
-174
-175
-176</pre>
+183
+184
+185
+186
+187
+188
+189
+190</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 169</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 183</span>
<span class='kw'>def</span> <span class='id identifier rubyid_serialize_name'>serialize_name</span>
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='symbol'>:directoryName</span>
<span class='kw'>return</span> <span class='id identifier rubyid_serialize_directory_name'>serialize_directory_name</span>
<span class='kw'>else</span>
@@ -1059,11 +1061,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="to_h-instance_method">
- - (<tt>Hash</tt>) <strong>to_h</strong>
+ #<strong>to_h</strong> ⇒ <tt>Hash</tt>
@@ -1093,21 +1095,21 @@
<tr>
<td>
<pre class="lines">
-147
-148
-149
-150
-151</pre>
+161
+162
+163
+164
+165</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 147</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 161</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
- <span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Subject</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='op'>?</span> <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='op'>:</span> <span class='ivar'>@value</span>
+ <span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Subject</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='op'>:</span> <span class='ivar'>@value</span>
<span class='lbrace'>{</span> <span class='symbol'>:type</span> <span class='op'>=></span> <span class='ivar'>@short_type</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_val'>val</span> <span class='rbrace'>}</span>
<span class='kw'>end</span></pre>
</td>
</tr>
@@ -1116,13 +1118,14 @@
</div>
</div>
- <div id="footer">
- Generated on Sun Jan 26 13:37:26 2014 by
+ <div id="footer">
+ Generated on Tue Dec 6 17:27:39 2016 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.8.6.1 (ruby-2.0.0).
+ 0.9.5 (ruby-2.4.0).
</div>
+ </div>
</body>
</html>
\ No newline at end of file