doc/R509/Config/SubjectItemPolicy.html in r509-0.10.0 vs doc/R509/Config/SubjectItemPolicy.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::Config::SubjectItemPolicy
- — 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::Config::SubjectItemPolicy";
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 (S)</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="../Config.html" title="R509::Config (module)">Config</a></span></span>
»
<span class="title">SubjectItemPolicy</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::Config::SubjectItemPolicy
+ <div id="content"><h1>Class: R509::Config::SubjectItemPolicy
</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::Config::SubjectItemPolicy</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/config/subject_item_policy.rb</dd>
+
-</dl>
-<div class="clear"></div>
+
+ <dl>
+ <dt>Defined in:</dt>
+ <dd>lib/r509/config/subject_item_policy.rb</dd>
+ </dl>
+
+</div>
+
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>The Subject Item Policy allows you to define what subject fields are
allowed in a certificate. Required means that field <strong>must</strong>
@@ -118,17 +120,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="#match-instance_method" title="#match (instance method)">- (Array) <strong>match</strong> </a>
+ <a href="#match-instance_method" title="#match (instance method)">#<strong>match</strong> ⇒ Array </a>
</span>
@@ -151,11 +153,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#match_values-instance_method" title="#match_values (instance method)">- (Array) <strong>match_values</strong> </a>
+ <a href="#match_values-instance_method" title="#match_values (instance method)">#<strong>match_values</strong> ⇒ Array </a>
</span>
@@ -178,11 +180,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#optional-instance_method" title="#optional (instance method)">- (Array) <strong>optional</strong> </a>
+ <a href="#optional-instance_method" title="#optional (instance method)">#<strong>optional</strong> ⇒ Array </a>
</span>
@@ -205,11 +207,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#required-instance_method" title="#required (instance method)">- (Array) <strong>required</strong> </a>
+ <a href="#required-instance_method" title="#required (instance method)">#<strong>required</strong> ⇒ Array </a>
</span>
@@ -237,19 +239,19 @@
<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)">- (SubjectItemPolicy) <strong>initialize</strong>(hash = {}) </a>
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(hash = {}) ⇒ SubjectItemPolicy </a>
</span>
@@ -271,11 +273,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>
@@ -293,11 +295,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#to_yaml-instance_method" title="#to_yaml (instance method)">- (YAML) <strong>to_yaml</strong> </a>
+ <a href="#to_yaml-instance_method" title="#to_yaml (instance method)">#<strong>to_yaml</strong> ⇒ YAML </a>
</span>
@@ -315,11 +317,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#validate_subject-instance_method" title="#validate_subject (instance method)">- (R509::Subject) <strong>validate_subject</strong>(subject) </a>
+ <a href="#validate_subject-instance_method" title="#validate_subject (instance method)">#<strong>validate_subject</strong>(subject) ⇒ R509::Subject </a>
</span>
@@ -345,20 +347,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::Config::SubjectItemPolicy (class)">SubjectItemPolicy</a></span></tt>) <strong>initialize</strong>(hash = {})
+ #<strong>initialize</strong>(hash = {}) ⇒ <tt><span class='object_link'><a href="" title="R509::Config::SubjectItemPolicy (class)">SubjectItemPolicy</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>A new instance of SubjectItemPolicy</p>
+<p>Returns a new instance of SubjectItemPolicy</p>
</div>
</div>
<div class="tags">
@@ -432,39 +434,37 @@
51
52
53
54
55
-56
-57</pre>
+56</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/r509/config/subject_item_policy.rb', line 33</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='id identifier rubyid_hash'>hash</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'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
+ <span class='kw'>unless</span> <span class='id identifier rubyid_hash'>hash</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='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Must supply a hash in form 'shortname'=>hash_with_policy_info</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
<span class='ivar'>@required</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='ivar'>@optional</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='ivar'>@match_values</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
<span class='ivar'>@match</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
- <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='id identifier rubyid_value'>value</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='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Each value must be a hash with a :policy key</span><span class='tstring_end'>"</span></span>
- <span class='kw'>end</span>
- <span class='kw'>case</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='symbol'>:policy</span><span class='rbracket'>]</span>
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>required</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@required</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>optional</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@optional</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>match</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span>
- <span class='ivar'>@match_values</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span>
- <span class='ivar'>@match</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
- <span class='kw'>else</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown subject item policy value. Allowed values are required, optional, or match</span><span class='tstring_end'>"</span></span>
- <span class='kw'>end</span>
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
+ <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
+ <span class='kw'>unless</span> <span class='id identifier rubyid_value'>value</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='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Each value must be a hash with a :policy key</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
+ <span class='kw'>case</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='symbol'>:policy</span><span class='rbracket'>]</span>
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>required</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@required</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>optional</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span> <span class='ivar'>@optional</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
+ <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>match</span><span class='tstring_end'>'</span></span> <span class='kw'>then</span>
+ <span class='ivar'>@match_values</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span>
+ <span class='ivar'>@match</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
+ <span class='kw'>else</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown subject item policy value. Allowed values are required, optional, or match</span><span class='tstring_end'>"</span></span>
+ <span class='kw'>end</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
@@ -478,11 +478,11 @@
<span id=""></span>
<div class="method_details first">
<h3 class="signature first" id="match-instance_method">
- - (<tt>Array</tt>) <strong>match</strong> <span class="extras">(readonly)</span>
+ #<strong>match</strong> ⇒ <tt>Array</tt> <span class="extras">(readonly)</span>
@@ -532,11 +532,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="match_values-instance_method">
- - (<tt>Array</tt>) <strong>match_values</strong> <span class="extras">(readonly)</span>
+ #<strong>match_values</strong> ⇒ <tt>Array</tt> <span class="extras">(readonly)</span>
@@ -586,11 +586,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="optional-instance_method">
- - (<tt>Array</tt>) <strong>optional</strong> <span class="extras">(readonly)</span>
+ #<strong>optional</strong> ⇒ <tt>Array</tt> <span class="extras">(readonly)</span>
@@ -640,11 +640,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="required-instance_method">
- - (<tt>Array</tt>) <strong>required</strong> <span class="extras">(readonly)</span>
+ #<strong>required</strong> ⇒ <tt>Array</tt> <span class="extras">(readonly)</span>
@@ -699,11 +699,11 @@
<div class="method_details first">
<h3 class="signature first" id="to_h-instance_method">
- - (<tt>Hash</tt>) <strong>to_h</strong>
+ #<strong>to_h</strong> ⇒ <tt>Hash</tt>
@@ -733,37 +733,37 @@
<tr>
<td>
<pre class="lines">
+73
74
75
76
77
78
-79
-80</pre>
+79</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/subject_item_policy.rb', line 74</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/subject_item_policy.rb', line 73</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
<span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
- <span class='ivar'>@required</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_r'>r</span><span class='op'>|</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_r'>r</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:policy</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>required</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
- <span class='ivar'>@optional</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_o'>o</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:policy</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>optional</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
- <span class='ivar'>@match</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_m'>m</span><span class='op'>|</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_m'>m</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:policy</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='ivar'>@match_values</span><span class='lbracket'>[</span><span class='id identifier rubyid_m'>m</span><span class='rbracket'>]</span><span class='rbrace'>}</span> <span class='rbrace'>}</span>
+ <span class='ivar'>@required</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_r'>r</span><span class='op'>|</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_r'>r</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='symbol'>:policy</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>required</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
+ <span class='ivar'>@optional</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_o'>o</span><span class='op'>|</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_o'>o</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='symbol'>:policy</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>optional</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
+ <span class='ivar'>@match</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_m'>m</span><span class='op'>|</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_m'>m</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='symbol'>:policy</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>match</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='ivar'>@match_values</span><span class='lbracket'>[</span><span class='id identifier rubyid_m'>m</span><span class='rbracket'>]</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
<span class='id identifier rubyid_hash'>hash</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="to_yaml-instance_method">
- - (<tt>YAML</tt>) <strong>to_yaml</strong>
+ #<strong>to_yaml</strong> ⇒ <tt>YAML</tt>
@@ -793,16 +793,16 @@
<tr>
<td>
<pre class="lines">
+82
83
-84
-85</pre>
+84</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/subject_item_policy.rb', line 83</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/subject_item_policy.rb', line 82</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_yaml'>to_yaml</span>
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span><span class='period'>.</span><span class='id identifier rubyid_to_yaml'>to_yaml</span>
<span class='kw'>end</span></pre>
</td>
@@ -811,20 +811,20 @@
</div>
<div class="method_details ">
<h3 class="signature " id="validate_subject-instance_method">
- - (<tt><span class='object_link'><a href="../Subject.html" title="R509::Subject (class)">R509::Subject</a></span></tt>) <strong>validate_subject</strong>(subject)
+ #<strong>validate_subject</strong>(subject) ⇒ <tt><span class='object_link'><a href="../Subject.html" title="R509::Subject (class)">R509::Subject</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Validated version of the subject or error</p>
+<p>Returns validated version of the subject or error</p>
</div>
</div>
<div class="tags">
@@ -867,34 +867,34 @@
<tr>
<td>
<pre class="lines">
+60
61
62
63
64
65
66
67
68
69
-70
-71</pre>
+70</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/subject_item_policy.rb', line 61</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/subject_item_policy.rb', line 60</span>
<span class='kw'>def</span> <span class='id identifier rubyid_validate_subject'>validate_subject</span><span class='lparen'>(</span><span class='id identifier rubyid_subject'>subject</span><span class='rparen'>)</span>
<span class='comment'># check if match components are present and match
</span> <span class='id identifier rubyid_validate_match'>validate_match</span><span class='lparen'>(</span><span class='id identifier rubyid_subject'>subject</span><span class='rparen'>)</span>
<span class='id identifier rubyid_validate_required_match'>validate_required_match</span><span class='lparen'>(</span><span class='id identifier rubyid_subject'>subject</span><span class='rparen'>)</span>
<span class='comment'># the validated subject contains only those subject components that are either
</span> <span class='comment'># required, optional, or match
</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Subject</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_subject'>subject</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_item'>item</span><span class='op'>|</span>
- <span class='ivar'>@required</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>or</span> <span class='ivar'>@optional</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>or</span> <span class='ivar'>@match</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span>
+ <span class='ivar'>@required</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='ivar'>@optional</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='ivar'>@match</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span>
<span class='kw'>end</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
@@ -902,13 +902,14 @@
</div>
</div>
- <div id="footer">
- Generated on Sun Jan 26 13:37:27 2014 by
+ <div id="footer">
+ Generated on Tue Dec 6 17:27:41 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