doc/Brauser/BrowserMethods/Querying.html in brauser-3.2.2 vs doc/Brauser/BrowserMethods/Querying.html in brauser-3.2.3
- old
+ new
@@ -4,11 +4,11 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Module: Brauser::BrowserMethods::Querying
- — Documentation by YARD 0.8.7
+ — Documentation by YARD 0.8.7.3
</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
@@ -183,10 +183,33 @@
<li class="public ">
<span class="summary_signature">
+ <a href="#supported%3F-instance_method" title="#supported? (instance method)">- (Boolean) <strong>supported?</strong>(supported) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'><p>Check if the browser is supported.</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
<a href="#v%3F-instance_method" title="#v? (instance method)">- (Boolean) <strong>v?</strong>(versions = {}) </a>
</span>
@@ -275,16 +298,16 @@
<tr>
<td>
<pre class="lines">
-634
-635
-636</pre>
+656
+657
+658</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 634</span>
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 656</span>
<span class='kw'>def</span> <span class='id identifier rubyid_accepts?'>accepts?</span><span class='lparen'>(</span><span class='id identifier rubyid_langs'>langs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
<span class='id identifier rubyid_accepts'>accepts</span><span class='lparen'>(</span><span class='id identifier rubyid_langs'>langs</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
<span class='kw'>end</span></pre>
</td>
@@ -339,11 +362,12 @@
<em class="default">(defaults to: <tt>{}</tt>)</em>
—
- <div class='inline'><p>An hash with specific version to match against. Need to be in form <code>{:operator => version}</code>, where operator is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
+ <div class='inline'><p>An hash with specific version to match against. Need to be in form <code>{:operator => version}</code>, where operator
+is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
</div>
</li>
<li>
@@ -396,16 +420,16 @@
<tr>
<td>
<pre class="lines">
-610
-611
-612</pre>
+631
+632
+633</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 610</span>
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 631</span>
<span class='kw'>def</span> <span class='id identifier rubyid_is?'>is?</span><span class='lparen'>(</span><span class='id identifier rubyid_names'>names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_versions'>versions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_platforms'>platforms</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
<span class='id identifier rubyid_is'>is</span><span class='lparen'>(</span><span class='id identifier rubyid_names'>names</span><span class='comma'>,</span> <span class='id identifier rubyid_versions'>versions</span><span class='comma'>,</span> <span class='id identifier rubyid_platforms'>platforms</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
<span class='kw'>end</span></pre>
</td>
@@ -474,26 +498,106 @@
<tr>
<td>
<pre class="lines">
-626
-627
-628</pre>
+648
+649
+650</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 626</span>
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 648</span>
<span class='kw'>def</span> <span class='id identifier rubyid_on?'>on?</span><span class='lparen'>(</span><span class='id identifier rubyid_platforms'>platforms</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
<span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_platforms'>platforms</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
+ <h3 class="signature " id="supported?-instance_method">
+
+ - (<tt>Boolean</tt>) <strong>supported?</strong>(supported)
+
+
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
+ <p>Check if the browser is supported.</p>
+
+
+ </div>
+</div>
+<div class="tags">
+ <p class="tag_title">Parameters:</p>
+<ul class="param">
+
+ <li>
+
+ <span class='name'>supported</span>
+
+
+ <span class='type'>(<tt>Hash|String</tt>)</span>
+
+
+
+ —
+ <div class='inline'><p>A map of engines and minimum supported major version, or a path to YAML file containing the map.</p>
+</div>
+
+ </li>
+
+</ul>
+
+<p class="tag_title">Returns:</p>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt>Boolean</tt>)</span>
+
+
+
+ —
+ <div class='inline'><p><code>true</code> if current browser is supported, <code>false</code> otherwise.</p>
+</div>
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+664
+665
+666
+667
+668</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 664</span>
+
+<span class='kw'>def</span> <span class='id identifier rubyid_supported?'>supported?</span><span class='lparen'>(</span><span class='id identifier rubyid_supported'>supported</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_supported'>supported</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span><span class='id identifier rubyid_supported'>supported</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_symbolize_keys'>symbolize_keys</span> <span class='kw'>if</span> <span class='id identifier rubyid_supported'>supported</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_minimum'>minimum</span> <span class='op'>=</span> <span class='id identifier rubyid_supported'>supported</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span>
+ <span class='lparen'>(</span><span class='id identifier rubyid_minimum'>minimum</span> <span class='op'>&&</span> <span class='id identifier rubyid_v?'>v?</span><span class='lparen'>(</span><span class='label'>gte:</span> <span class='id identifier rubyid_minimum'>minimum</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_boolean'>to_boolean</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
<h3 class="signature " id="v?-instance_method">
- (<tt>Boolean</tt>) <strong>v?</strong>(versions = {})
@@ -521,11 +625,12 @@
<em class="default">(defaults to: <tt>{}</tt>)</em>
—
- <div class='inline'><p>A string in the form <code>operator version && ...</code> (example: <code>>= 7 && < 4</code>) or an hash with specific version to match against, in form <code>{:operator => version}</code>, where operator is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
+ <div class='inline'><p>A string in the form <code>operator version && ...</code> (example: <code>>= 7 && < 4</code>) or an hash with specific version to match against,
+in form <code>{:operator => version}</code>, where operator is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
</div>
</li>
</ul>
@@ -552,16 +657,16 @@
<tr>
<td>
<pre class="lines">
-618
-619
-620</pre>
+640
+641
+642</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 618</span>
+ <pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 640</span>
<span class='kw'>def</span> <span class='id identifier rubyid_v?'>v?</span><span class='lparen'>(</span><span class='id identifier rubyid_versions'>versions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
<span class='id identifier rubyid_v'>v</span><span class='lparen'>(</span><span class='id identifier rubyid_versions'>versions</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
<span class='kw'>end</span></pre>
</td>
@@ -572,12 +677,12 @@
</div>
</div>
<div id="footer">
- Generated on Sun Aug 18 16:30:30 2013 by
+ Generated on Sat Nov 16 10:49:21 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.8.7 (ruby-2.0.0).
+ 0.8.7.3 (ruby-2.0.0).
</div>
</body>
</html>
\ No newline at end of file