brauser 3.2.6 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/.gitignore +1 -0
 - data/.rubocop.yml +29 -0
 - data/.travis-gemfile +1 -1
 - data/.travis.yml +2 -1
 - data/Gemfile +3 -3
 - data/README.md +6 -6
 - data/brauser.gemspec +1 -1
 - data/doc/Brauser.html +7 -7
 - data/doc/Brauser/Browseable.html +127 -0
 - data/doc/Brauser/{BrowserMethods → Browseable}/Attributes.html +34 -30
 - data/doc/Brauser/Browseable/DefaultDefinitions.html +387 -0
 - data/doc/Brauser/{BrowserMethods → Browseable}/General.html +9 -9
 - data/doc/Brauser/{BrowserMethods → Browseable}/General/ClassMethods.html +33 -33
 - data/doc/Brauser/{BrowserMethods → Browseable}/Parsing.html +23 -23
 - data/doc/Brauser/{BrowserMethods → Browseable}/PartialQuerying.html +59 -53
 - data/doc/Brauser/{BrowserMethods → Browseable}/Querying.html +43 -37
 - data/doc/Brauser/{BrowserMethods → Browseable}/Register.html +9 -9
 - data/doc/Brauser/Browseable/Register/ClassMethods.html +516 -0
 - data/doc/Brauser/Browser.html +787 -1362
 - data/doc/Brauser/Definition.html +230 -40
 - data/doc/Brauser/Hooks.html +4 -4
 - data/doc/Brauser/Hooks/RubyOnRails.html +4 -4
 - data/doc/Brauser/Query.html +53 -53
 - data/doc/Brauser/{BrowserMethods.html → Queryable.html} +13 -11
 - data/doc/Brauser/{Chainers.html → Queryable/Chainers.html} +51 -45
 - data/doc/Brauser/{Queries.html → Queryable/Queries.html} +47 -41
 - data/doc/Brauser/Version.html +6 -6
 - data/doc/_index.html +41 -27
 - data/doc/class_list.html +1 -1
 - data/doc/css/style.css +1 -0
 - data/doc/file.README.html +10 -10
 - data/doc/frames.html +1 -1
 - data/doc/index.html +10 -10
 - data/doc/method_list.html +68 -74
 - data/doc/top-level-namespace.html +4 -4
 - data/lib/brauser.rb +14 -3
 - data/lib/brauser/browseable/attributes.rb +95 -0
 - data/lib/brauser/browseable/general.rb +104 -0
 - data/lib/brauser/browseable/parsing.rb +127 -0
 - data/lib/brauser/browseable/partial_querying.rb +116 -0
 - data/lib/brauser/browseable/querying.rb +63 -0
 - data/lib/brauser/browseable/register.rb +73 -0
 - data/lib/brauser/browser.rb +34 -741
 - data/lib/brauser/definition.rb +30 -5
 - data/lib/brauser/definitions/browsers.rb +66 -0
 - data/lib/brauser/definitions/languages.rb +130 -0
 - data/lib/brauser/definitions/platforms.rb +30 -0
 - data/lib/brauser/query.rb +4 -99
 - data/lib/brauser/queryable/chainers.rb +56 -0
 - data/lib/brauser/queryable/queries.rb +60 -0
 - data/lib/brauser/version.rb +3 -2
 - data/spec/brauser/browser_spec.rb +26 -29
 - data/spec/brauser/query_spec.rb +15 -13
 - metadata +30 -17
 - data/.bundle/install.log +0 -106
 - data/doc/Brauser/BrowserMethods/Register/ClassMethods.html +0 -770
 
| 
         @@ -4,9 +4,9 @@ 
     | 
|
| 
       4 
4 
     | 
    
         
             
              <head>
         
     | 
| 
       5 
5 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
     | 
    
         
            -
              Module: Brauser:: 
     | 
| 
      
 7 
     | 
    
         
            +
              Module: Brauser::Browseable::Querying
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Documentation by YARD 0.8.7. 
     | 
| 
      
 9 
     | 
    
         
            +
                — Documentation by YARD 0.8.7.4
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -17,7 +17,7 @@ 
     | 
|
| 
       17 
17 
     | 
    
         
             
            <script type="text/javascript" charset="utf-8">
         
     | 
| 
       18 
18 
     | 
    
         
             
              hasFrames = window.top.frames.main ? true : false;
         
     | 
| 
       19 
19 
     | 
    
         
             
              relpath = '../../';
         
     | 
| 
       20 
     | 
    
         
            -
              framesUrl = "../../frames.html#!" 
     | 
| 
      
 20 
     | 
    
         
            +
              framesUrl = "../../frames.html#!Brauser/Browseable/Querying.html";
         
     | 
| 
       21 
21 
     | 
    
         
             
            </script>
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         | 
| 
         @@ -32,7 +32,7 @@ 
     | 
|
| 
       32 
32 
     | 
    
         
             
                  <div id="menu">
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
34 
     | 
    
         
             
                <a href="../../_index.html">Index (Q)</a> »
         
     | 
| 
       35 
     | 
    
         
            -
                <span class='title'><span class='object_link'><a href="../../Brauser.html" title="Brauser (module)">Brauser</a></span></span> » <span class='title'><span class='object_link'><a href="../ 
     | 
| 
      
 35 
     | 
    
         
            +
                <span class='title'><span class='object_link'><a href="../../Brauser.html" title="Brauser (module)">Brauser</a></span></span> » <span class='title'><span class='object_link'><a href="../Browseable.html" title="Brauser::Browseable (module)">Browseable</a></span></span>
         
     | 
| 
       36 
36 
     | 
    
         
             
                 » 
         
     | 
| 
       37 
37 
     | 
    
         
             
                <span class="title">Querying</span>
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
         @@ -63,7 +63,7 @@ 
     | 
|
| 
       63 
63 
     | 
    
         | 
| 
       64 
64 
     | 
    
         
             
                <iframe id="search_frame"></iframe>
         
     | 
| 
       65 
65 
     | 
    
         | 
| 
       66 
     | 
    
         
            -
                <div id="content"><h1>Module: Brauser:: 
     | 
| 
      
 66 
     | 
    
         
            +
                <div id="content"><h1>Module: Brauser::Browseable::Querying
         
     | 
| 
       67 
67 
     | 
    
         | 
| 
       68 
68 
     | 
    
         | 
| 
       69 
69 
     | 
    
         | 
| 
         @@ -83,7 +83,7 @@ 
     | 
|
| 
       83 
83 
     | 
    
         | 
| 
       84 
84 
     | 
    
         | 
| 
       85 
85 
     | 
    
         
             
                <dt class="r2 last">Defined in:</dt>
         
     | 
| 
       86 
     | 
    
         
            -
                <dd class="r2 last">lib/brauser/ 
     | 
| 
      
 86 
     | 
    
         
            +
                <dd class="r2 last">lib/brauser/browseable/querying.rb</dd>
         
     | 
| 
       87 
87 
     | 
    
         | 
| 
       88 
88 
     | 
    
         
             
            </dl>
         
     | 
| 
       89 
89 
     | 
    
         
             
            <div class="clear"></div>
         
     | 
| 
         @@ -208,10 +208,12 @@ 
     | 
|
| 
       208 
208 
     | 
    
         
             
                    <li class="public ">
         
     | 
| 
       209 
209 
     | 
    
         
             
              <span class="summary_signature">
         
     | 
| 
       210 
210 
     | 
    
         | 
| 
       211 
     | 
    
         
            -
                  <a href="# 
     | 
| 
      
 211 
     | 
    
         
            +
                  <a href="#version%3F-instance_method" title="#version? (instance method)">- (Boolean) <strong>version?</strong>(versions = {}) </a>
         
     | 
| 
       212 
212 
     | 
    
         | 
| 
       213 
213 
     | 
    
         | 
| 
       214 
214 
     | 
    
         | 
| 
      
 215 
     | 
    
         
            +
                  (also: #v?)
         
     | 
| 
      
 216 
     | 
    
         
            +
                
         
     | 
| 
       215 
217 
     | 
    
         
             
              </span>
         
     | 
| 
       216 
218 
     | 
    
         | 
| 
       217 
219 
     | 
    
         | 
| 
         @@ -300,12 +302,12 @@ 
     | 
|
| 
       300 
302 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       301 
303 
     | 
    
         | 
| 
       302 
304 
     | 
    
         | 
| 
       303 
     | 
    
         
            -
             
     | 
| 
       304 
     | 
    
         
            -
             
     | 
| 
       305 
     | 
    
         
            -
             
     | 
| 
      
 305 
     | 
    
         
            +
            48
         
     | 
| 
      
 306 
     | 
    
         
            +
            49
         
     | 
| 
      
 307 
     | 
    
         
            +
            50</pre>
         
     | 
| 
       306 
308 
     | 
    
         
             
                </td>
         
     | 
| 
       307 
309 
     | 
    
         
             
                <td>
         
     | 
| 
       308 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/brauser/ 
     | 
| 
      
 310 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/querying.rb', line 48</span>
         
     | 
| 
       309 
311 
     | 
    
         | 
| 
       310 
312 
     | 
    
         
             
            <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>
         
     | 
| 
       311 
313 
     | 
    
         
             
              <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>
         
     | 
| 
         @@ -410,9 +412,9 @@ is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p> 
     | 
|
| 
       410 
412 
     | 
    
         
             
              <p class="tag_title">See Also:</p>
         
     | 
| 
       411 
413 
     | 
    
         
             
              <ul class="see">
         
     | 
| 
       412 
414 
     | 
    
         | 
| 
       413 
     | 
    
         
            -
                  <li><span class='object_link'><a href="#v%3F-instance_method" title="Brauser:: 
     | 
| 
      
 415 
     | 
    
         
            +
                  <li><span class='object_link'><a href="#v%3F-instance_method" title="Brauser::Browseable::Querying#v? (method)">#v?</a></span></li>
         
     | 
| 
       414 
416 
     | 
    
         | 
| 
       415 
     | 
    
         
            -
                  <li><span class='object_link'><a href="#on%3F-instance_method" title="Brauser:: 
     | 
| 
      
 417 
     | 
    
         
            +
                  <li><span class='object_link'><a href="#on%3F-instance_method" title="Brauser::Browseable::Querying#on? (method)">#on?</a></span></li>
         
     | 
| 
       416 
418 
     | 
    
         | 
| 
       417 
419 
     | 
    
         
             
              </ul>
         
     | 
| 
       418 
420 
     | 
    
         | 
| 
         @@ -422,12 +424,12 @@ is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p> 
     | 
|
| 
       422 
424 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       423 
425 
     | 
    
         | 
| 
       424 
426 
     | 
    
         | 
| 
       425 
     | 
    
         
            -
             
     | 
| 
       426 
     | 
    
         
            -
             
     | 
| 
       427 
     | 
    
         
            -
             
     | 
| 
      
 427 
     | 
    
         
            +
            22
         
     | 
| 
      
 428 
     | 
    
         
            +
            23
         
     | 
| 
      
 429 
     | 
    
         
            +
            24</pre>
         
     | 
| 
       428 
430 
     | 
    
         
             
                </td>
         
     | 
| 
       429 
431 
     | 
    
         
             
                <td>
         
     | 
| 
       430 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/brauser/ 
     | 
| 
      
 432 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/querying.rb', line 22</span>
         
     | 
| 
       431 
433 
     | 
    
         | 
| 
       432 
434 
     | 
    
         
             
            <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>
         
     | 
| 
       433 
435 
     | 
    
         
             
              <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>
         
     | 
| 
         @@ -500,12 +502,12 @@ is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p> 
     | 
|
| 
       500 
502 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       501 
503 
     | 
    
         | 
| 
       502 
504 
     | 
    
         | 
| 
       503 
     | 
    
         
            -
             
     | 
| 
       504 
     | 
    
         
            -
             
     | 
| 
       505 
     | 
    
         
            -
             
     | 
| 
      
 505 
     | 
    
         
            +
            40
         
     | 
| 
      
 506 
     | 
    
         
            +
            41
         
     | 
| 
      
 507 
     | 
    
         
            +
            42</pre>
         
     | 
| 
       506 
508 
     | 
    
         
             
                </td>
         
     | 
| 
       507 
509 
     | 
    
         
             
                <td>
         
     | 
| 
       508 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/brauser/ 
     | 
| 
      
 510 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/querying.rb', line 40</span>
         
     | 
| 
       509 
511 
     | 
    
         | 
| 
       510 
512 
     | 
    
         
             
            <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>
         
     | 
| 
       511 
513 
     | 
    
         
             
              <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>
         
     | 
| 
         @@ -576,14 +578,14 @@ is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p> 
     | 
|
| 
       576 
578 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       577 
579 
     | 
    
         | 
| 
       578 
580 
     | 
    
         | 
| 
       579 
     | 
    
         
            -
             
     | 
| 
       580 
     | 
    
         
            -
             
     | 
| 
       581 
     | 
    
         
            -
             
     | 
| 
       582 
     | 
    
         
            -
             
     | 
| 
       583 
     | 
    
         
            -
             
     | 
| 
      
 581 
     | 
    
         
            +
            56
         
     | 
| 
      
 582 
     | 
    
         
            +
            57
         
     | 
| 
      
 583 
     | 
    
         
            +
            58
         
     | 
| 
      
 584 
     | 
    
         
            +
            59
         
     | 
| 
      
 585 
     | 
    
         
            +
            60</pre>
         
     | 
| 
       584 
586 
     | 
    
         
             
                </td>
         
     | 
| 
       585 
587 
     | 
    
         
             
                <td>
         
     | 
| 
       586 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/brauser/ 
     | 
| 
      
 588 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/querying.rb', line 56</span>
         
     | 
| 
       587 
589 
     | 
    
         | 
| 
       588 
590 
     | 
    
         
             
            <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>
         
     | 
| 
       589 
591 
     | 
    
         
             
              <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>
         
     | 
| 
         @@ -596,12 +598,16 @@ is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p> 
     | 
|
| 
       596 
598 
     | 
    
         
             
            </div>
         
     | 
| 
       597 
599 
     | 
    
         | 
| 
       598 
600 
     | 
    
         
             
                  <div class="method_details ">
         
     | 
| 
       599 
     | 
    
         
            -
              <h3 class="signature " id=" 
     | 
| 
      
 601 
     | 
    
         
            +
              <h3 class="signature " id="version?-instance_method">
         
     | 
| 
       600 
602 
     | 
    
         | 
| 
       601 
     | 
    
         
            -
                - (<tt>Boolean</tt>) <strong> 
     | 
| 
      
 603 
     | 
    
         
            +
                - (<tt>Boolean</tt>) <strong>version?</strong>(versions = {}) 
         
     | 
| 
       602 
604 
     | 
    
         | 
| 
       603 
605 
     | 
    
         | 
| 
       604 
606 
     | 
    
         | 
| 
      
 607 
     | 
    
         
            +
                <span class="aliases">Also known as:
         
     | 
| 
      
 608 
     | 
    
         
            +
                <span class="names"><span id='v?-instance_method'>v?</span></span>
         
     | 
| 
      
 609 
     | 
    
         
            +
                </span>
         
     | 
| 
      
 610 
     | 
    
         
            +
              
         
     | 
| 
       605 
611 
     | 
    
         | 
| 
       606 
612 
     | 
    
         | 
| 
       607 
613 
     | 
    
         
             
            </h3><div class="docstring">
         
     | 
| 
         @@ -659,15 +665,15 @@ in form <code>{:operator => version}</code>, where operator is one of <code>: 
     | 
|
| 
       659 
665 
     | 
    
         
             
                  <pre class="lines">
         
     | 
| 
       660 
666 
     | 
    
         | 
| 
       661 
667 
     | 
    
         | 
| 
       662 
     | 
    
         
            -
             
     | 
| 
       663 
     | 
    
         
            -
             
     | 
| 
       664 
     | 
    
         
            -
             
     | 
| 
      
 668 
     | 
    
         
            +
            31
         
     | 
| 
      
 669 
     | 
    
         
            +
            32
         
     | 
| 
      
 670 
     | 
    
         
            +
            33</pre>
         
     | 
| 
       665 
671 
     | 
    
         
             
                </td>
         
     | 
| 
       666 
672 
     | 
    
         
             
                <td>
         
     | 
| 
       667 
     | 
    
         
            -
                  <pre class="code"><span class="info file"># File 'lib/brauser/ 
     | 
| 
      
 673 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/querying.rb', line 31</span>
         
     | 
| 
       668 
674 
     | 
    
         | 
| 
       669 
     | 
    
         
            -
            <span class='kw'>def</span> <span class='id identifier  
     | 
| 
       670 
     | 
    
         
            -
              <span class='id identifier  
     | 
| 
      
 675 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_version?'>version?</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>
         
     | 
| 
      
 676 
     | 
    
         
            +
              <span class='id identifier rubyid_version'>version</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>
         
     | 
| 
       671 
677 
     | 
    
         
             
            <span class='kw'>end</span></pre>
         
     | 
| 
       672 
678 
     | 
    
         
             
                </td>
         
     | 
| 
       673 
679 
     | 
    
         
             
              </tr>
         
     | 
| 
         @@ -679,9 +685,9 @@ in form <code>{:operator => version}</code>, where operator is one of <code>: 
     | 
|
| 
       679 
685 
     | 
    
         
             
            </div>
         
     | 
| 
       680 
686 
     | 
    
         | 
| 
       681 
687 
     | 
    
         
             
                <div id="footer">
         
     | 
| 
       682 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 688 
     | 
    
         
            +
              Generated on Sat May 10 13:59:11 2014 by
         
     | 
| 
       683 
689 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       684 
     | 
    
         
            -
              0.8.7. 
     | 
| 
      
 690 
     | 
    
         
            +
              0.8.7.4 (ruby-2.1.0).
         
     | 
| 
       685 
691 
     | 
    
         
             
            </div>
         
     | 
| 
       686 
692 
     | 
    
         | 
| 
       687 
693 
     | 
    
         
             
              </body>
         
     | 
| 
         @@ -4,9 +4,9 @@ 
     | 
|
| 
       4 
4 
     | 
    
         
             
              <head>
         
     | 
| 
       5 
5 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       6 
6 
     | 
    
         
             
            <title>
         
     | 
| 
       7 
     | 
    
         
            -
              Module: Brauser:: 
     | 
| 
      
 7 
     | 
    
         
            +
              Module: Brauser::Browseable::Register
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                — Documentation by YARD 0.8.7. 
     | 
| 
      
 9 
     | 
    
         
            +
                — Documentation by YARD 0.8.7.4
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
            </title>
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
         @@ -17,7 +17,7 @@ 
     | 
|
| 
       17 
17 
     | 
    
         
             
            <script type="text/javascript" charset="utf-8">
         
     | 
| 
       18 
18 
     | 
    
         
             
              hasFrames = window.top.frames.main ? true : false;
         
     | 
| 
       19 
19 
     | 
    
         
             
              relpath = '../../';
         
     | 
| 
       20 
     | 
    
         
            -
              framesUrl = "../../frames.html#!" 
     | 
| 
      
 20 
     | 
    
         
            +
              framesUrl = "../../frames.html#!Brauser/Browseable/Register.html";
         
     | 
| 
       21 
21 
     | 
    
         
             
            </script>
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         | 
| 
         @@ -32,7 +32,7 @@ 
     | 
|
| 
       32 
32 
     | 
    
         
             
                  <div id="menu">
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
34 
     | 
    
         
             
                <a href="../../_index.html">Index (R)</a> »
         
     | 
| 
       35 
     | 
    
         
            -
                <span class='title'><span class='object_link'><a href="../../Brauser.html" title="Brauser (module)">Brauser</a></span></span> » <span class='title'><span class='object_link'><a href="../ 
     | 
| 
      
 35 
     | 
    
         
            +
                <span class='title'><span class='object_link'><a href="../../Brauser.html" title="Brauser (module)">Brauser</a></span></span> » <span class='title'><span class='object_link'><a href="../Browseable.html" title="Brauser::Browseable (module)">Browseable</a></span></span>
         
     | 
| 
       36 
36 
     | 
    
         
             
                 » 
         
     | 
| 
       37 
37 
     | 
    
         
             
                <span class="title">Register</span>
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
         @@ -63,7 +63,7 @@ 
     | 
|
| 
       63 
63 
     | 
    
         | 
| 
       64 
64 
     | 
    
         
             
                <iframe id="search_frame"></iframe>
         
     | 
| 
       65 
65 
     | 
    
         | 
| 
       66 
     | 
    
         
            -
                <div id="content"><h1>Module: Brauser:: 
     | 
| 
      
 66 
     | 
    
         
            +
                <div id="content"><h1>Module: Brauser::Browseable::Register
         
     | 
| 
       67 
67 
     | 
    
         | 
| 
       68 
68 
     | 
    
         | 
| 
       69 
69 
     | 
    
         | 
| 
         @@ -87,7 +87,7 @@ 
     | 
|
| 
       87 
87 
     | 
    
         | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
89 
     | 
    
         
             
                <dt class="r1 last">Defined in:</dt>
         
     | 
| 
       90 
     | 
    
         
            -
                <dd class="r1 last">lib/brauser/ 
     | 
| 
      
 90 
     | 
    
         
            +
                <dd class="r1 last">lib/brauser/browseable/register.rb</dd>
         
     | 
| 
       91 
91 
     | 
    
         | 
| 
       92 
92 
     | 
    
         
             
            </dl>
         
     | 
| 
       93 
93 
     | 
    
         
             
            <div class="clear"></div>
         
     | 
| 
         @@ -106,7 +106,7 @@ 
     | 
|
| 
       106 
106 
     | 
    
         
             
            <p class="children">
         
     | 
| 
       107 
107 
     | 
    
         | 
| 
       108 
108 
     | 
    
         | 
| 
       109 
     | 
    
         
            -
                  <strong class="modules">Modules:</strong> <span class='object_link'><a href="Register/ClassMethods.html" title="Brauser:: 
     | 
| 
      
 109 
     | 
    
         
            +
                  <strong class="modules">Modules:</strong> <span class='object_link'><a href="Register/ClassMethods.html" title="Brauser::Browseable::Register::ClassMethods (module)">ClassMethods</a></span>
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
       111 
111 
     | 
    
         | 
| 
       112 
112 
     | 
    
         | 
| 
         @@ -125,9 +125,9 @@ 
     | 
|
| 
       125 
125 
     | 
    
         
             
            </div>
         
     | 
| 
       126 
126 
     | 
    
         | 
| 
       127 
127 
     | 
    
         
             
                <div id="footer">
         
     | 
| 
       128 
     | 
    
         
            -
              Generated on  
     | 
| 
      
 128 
     | 
    
         
            +
              Generated on Sat May 10 13:59:11 2014 by
         
     | 
| 
       129 
129 
     | 
    
         
             
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
       130 
     | 
    
         
            -
              0.8.7. 
     | 
| 
      
 130 
     | 
    
         
            +
              0.8.7.4 (ruby-2.1.0).
         
     | 
| 
       131 
131 
     | 
    
         
             
            </div>
         
     | 
| 
       132 
132 
     | 
    
         | 
| 
       133 
133 
     | 
    
         
             
              </body>
         
     | 
| 
         @@ -0,0 +1,516 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         
     | 
| 
      
 2 
     | 
    
         
            +
              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         
     | 
| 
      
 3 
     | 
    
         
            +
            <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
         
     | 
| 
      
 4 
     | 
    
         
            +
              <head>
         
     | 
| 
      
 5 
     | 
    
         
            +
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
      
 6 
     | 
    
         
            +
            <title>
         
     | 
| 
      
 7 
     | 
    
         
            +
              Module: Brauser::Browseable::Register::ClassMethods
         
     | 
| 
      
 8 
     | 
    
         
            +
              
         
     | 
| 
      
 9 
     | 
    
         
            +
                — Documentation by YARD 0.8.7.4
         
     | 
| 
      
 10 
     | 
    
         
            +
              
         
     | 
| 
      
 11 
     | 
    
         
            +
            </title>
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
              <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
              <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            <script type="text/javascript" charset="utf-8">
         
     | 
| 
      
 18 
     | 
    
         
            +
              hasFrames = window.top.frames.main ? true : false;
         
     | 
| 
      
 19 
     | 
    
         
            +
              relpath = '../../../';
         
     | 
| 
      
 20 
     | 
    
         
            +
              framesUrl = "../../../frames.html#!Brauser/Browseable/Register/ClassMethods.html";
         
     | 
| 
      
 21 
     | 
    
         
            +
            </script>
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
              <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
              </head>
         
     | 
| 
      
 30 
     | 
    
         
            +
              <body>
         
     | 
| 
      
 31 
     | 
    
         
            +
                <div id="header">
         
     | 
| 
      
 32 
     | 
    
         
            +
                  <div id="menu">
         
     | 
| 
      
 33 
     | 
    
         
            +
              
         
     | 
| 
      
 34 
     | 
    
         
            +
                <a href="../../../_index.html">Index (C)</a> »
         
     | 
| 
      
 35 
     | 
    
         
            +
                <span class='title'><span class='object_link'><a href="../../../Brauser.html" title="Brauser (module)">Brauser</a></span></span> » <span class='title'><span class='object_link'><a href="../../Browseable.html" title="Brauser::Browseable (module)">Browseable</a></span></span> » <span class='title'><span class='object_link'><a href="../Register.html" title="Brauser::Browseable::Register (module)">Register</a></span></span>
         
     | 
| 
      
 36 
     | 
    
         
            +
                 » 
         
     | 
| 
      
 37 
     | 
    
         
            +
                <span class="title">ClassMethods</span>
         
     | 
| 
      
 38 
     | 
    
         
            +
              
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
              <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
         
     | 
| 
      
 41 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
                  <div id="search">
         
     | 
| 
      
 44 
     | 
    
         
            +
              
         
     | 
| 
      
 45 
     | 
    
         
            +
                <a class="full_list_link" id="class_list_link"
         
     | 
| 
      
 46 
     | 
    
         
            +
                    href="../../../class_list.html">
         
     | 
| 
      
 47 
     | 
    
         
            +
                  Class List
         
     | 
| 
      
 48 
     | 
    
         
            +
                </a>
         
     | 
| 
      
 49 
     | 
    
         
            +
              
         
     | 
| 
      
 50 
     | 
    
         
            +
                <a class="full_list_link" id="method_list_link"
         
     | 
| 
      
 51 
     | 
    
         
            +
                    href="../../../method_list.html">
         
     | 
| 
      
 52 
     | 
    
         
            +
                  Method List
         
     | 
| 
      
 53 
     | 
    
         
            +
                </a>
         
     | 
| 
      
 54 
     | 
    
         
            +
              
         
     | 
| 
      
 55 
     | 
    
         
            +
                <a class="full_list_link" id="file_list_link"
         
     | 
| 
      
 56 
     | 
    
         
            +
                    href="../../../file_list.html">
         
     | 
| 
      
 57 
     | 
    
         
            +
                  File List
         
     | 
| 
      
 58 
     | 
    
         
            +
                </a>
         
     | 
| 
      
 59 
     | 
    
         
            +
              
         
     | 
| 
      
 60 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 61 
     | 
    
         
            +
                  <div class="clear"></div>
         
     | 
| 
      
 62 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 63 
     | 
    
         
            +
             
     | 
| 
      
 64 
     | 
    
         
            +
                <iframe id="search_frame"></iframe>
         
     | 
| 
      
 65 
     | 
    
         
            +
             
     | 
| 
      
 66 
     | 
    
         
            +
                <div id="content"><h1>Module: Brauser::Browseable::Register::ClassMethods
         
     | 
| 
      
 67 
     | 
    
         
            +
              
         
     | 
| 
      
 68 
     | 
    
         
            +
              
         
     | 
| 
      
 69 
     | 
    
         
            +
              
         
     | 
| 
      
 70 
     | 
    
         
            +
            </h1>
         
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
            <dl class="box">
         
     | 
| 
      
 73 
     | 
    
         
            +
              
         
     | 
| 
      
 74 
     | 
    
         
            +
              
         
     | 
| 
      
 75 
     | 
    
         
            +
                
         
     | 
| 
      
 76 
     | 
    
         
            +
              
         
     | 
| 
      
 77 
     | 
    
         
            +
                
         
     | 
| 
      
 78 
     | 
    
         
            +
              
         
     | 
| 
      
 79 
     | 
    
         
            +
              
         
     | 
| 
      
 80 
     | 
    
         
            +
              
         
     | 
| 
      
 81 
     | 
    
         
            +
                <dt class="r1 last">Defined in:</dt>
         
     | 
| 
      
 82 
     | 
    
         
            +
                <dd class="r1 last">lib/brauser/browseable/register.rb</dd>
         
     | 
| 
      
 83 
     | 
    
         
            +
              
         
     | 
| 
      
 84 
     | 
    
         
            +
            </dl>
         
     | 
| 
      
 85 
     | 
    
         
            +
            <div class="clear"></div>
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
            <h2>Overview</h2><div class="docstring">
         
     | 
| 
      
 88 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 89 
     | 
    
         
            +
                <p>Class methods.</p>
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
             
     | 
| 
      
 92 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 93 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 94 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 95 
     | 
    
         
            +
              
         
     | 
| 
      
 96 
     | 
    
         
            +
             
     | 
| 
      
 97 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
             
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
              
         
     | 
| 
      
 105 
     | 
    
         
            +
                <h2>
         
     | 
| 
      
 106 
     | 
    
         
            +
                  Instance Method Summary
         
     | 
| 
      
 107 
     | 
    
         
            +
                  <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
         
     | 
| 
      
 108 
     | 
    
         
            +
                </h2>
         
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
      
 110 
     | 
    
         
            +
                <ul class="summary">
         
     | 
| 
      
 111 
     | 
    
         
            +
                  
         
     | 
| 
      
 112 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 113 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 114 
     | 
    
         
            +
                
         
     | 
| 
      
 115 
     | 
    
         
            +
                  <a href="#add-instance_method" title="#add (instance method)">- (Boolean) <strong>add</strong>(type, definition) </a>
         
     | 
| 
      
 116 
     | 
    
         
            +
                
         
     | 
| 
      
 117 
     | 
    
         
            +
             
     | 
| 
      
 118 
     | 
    
         
            +
                
         
     | 
| 
      
 119 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 120 
     | 
    
         
            +
              
         
     | 
| 
      
 121 
     | 
    
         
            +
              
         
     | 
| 
      
 122 
     | 
    
         
            +
              
         
     | 
| 
      
 123 
     | 
    
         
            +
              
         
     | 
| 
      
 124 
     | 
    
         
            +
              
         
     | 
| 
      
 125 
     | 
    
         
            +
              
         
     | 
| 
      
 126 
     | 
    
         
            +
              
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
              
         
     | 
| 
      
 129 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'><p>Adds a definitions for recognition.</p>
         
     | 
| 
      
 130 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 131 
     | 
    
         
            +
              
         
     | 
| 
      
 132 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
                  
         
     | 
| 
      
 135 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 136 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 137 
     | 
    
         
            +
                
         
     | 
| 
      
 138 
     | 
    
         
            +
                  <a href="#add_default_browsers-instance_method" title="#add_default_browsers (instance method)">- (Boolean) <strong>add_default_browsers</strong> </a>
         
     | 
| 
      
 139 
     | 
    
         
            +
                
         
     | 
| 
      
 140 
     | 
    
         
            +
             
     | 
| 
      
 141 
     | 
    
         
            +
                
         
     | 
| 
      
 142 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 143 
     | 
    
         
            +
              
         
     | 
| 
      
 144 
     | 
    
         
            +
              
         
     | 
| 
      
 145 
     | 
    
         
            +
              
         
     | 
| 
      
 146 
     | 
    
         
            +
              
         
     | 
| 
      
 147 
     | 
    
         
            +
              
         
     | 
| 
      
 148 
     | 
    
         
            +
              
         
     | 
| 
      
 149 
     | 
    
         
            +
              
         
     | 
| 
      
 150 
     | 
    
         
            +
             
     | 
| 
      
 151 
     | 
    
         
            +
              
         
     | 
| 
      
 152 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'><p>Adds definitions for a default list of browsers that can be recognized.</p>
         
     | 
| 
      
 153 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 154 
     | 
    
         
            +
              
         
     | 
| 
      
 155 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 156 
     | 
    
         
            +
             
     | 
| 
      
 157 
     | 
    
         
            +
                  
         
     | 
| 
      
 158 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 159 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 160 
     | 
    
         
            +
                
         
     | 
| 
      
 161 
     | 
    
         
            +
                  <a href="#add_default_languages-instance_method" title="#add_default_languages (instance method)">- (Boolean) <strong>add_default_languages</strong> </a>
         
     | 
| 
      
 162 
     | 
    
         
            +
                
         
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
      
 164 
     | 
    
         
            +
                
         
     | 
| 
      
 165 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 166 
     | 
    
         
            +
              
         
     | 
| 
      
 167 
     | 
    
         
            +
              
         
     | 
| 
      
 168 
     | 
    
         
            +
              
         
     | 
| 
      
 169 
     | 
    
         
            +
              
         
     | 
| 
      
 170 
     | 
    
         
            +
              
         
     | 
| 
      
 171 
     | 
    
         
            +
              
         
     | 
| 
      
 172 
     | 
    
         
            +
              
         
     | 
| 
      
 173 
     | 
    
         
            +
             
     | 
| 
      
 174 
     | 
    
         
            +
              
         
     | 
| 
      
 175 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'><p>Adds a default list of languages that can be recognized.</p>
         
     | 
| 
      
 176 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 177 
     | 
    
         
            +
              
         
     | 
| 
      
 178 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 179 
     | 
    
         
            +
             
     | 
| 
      
 180 
     | 
    
         
            +
                  
         
     | 
| 
      
 181 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 182 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 183 
     | 
    
         
            +
                
         
     | 
| 
      
 184 
     | 
    
         
            +
                  <a href="#add_default_platforms-instance_method" title="#add_default_platforms (instance method)">- (Boolean) <strong>add_default_platforms</strong> </a>
         
     | 
| 
      
 185 
     | 
    
         
            +
                
         
     | 
| 
      
 186 
     | 
    
         
            +
             
     | 
| 
      
 187 
     | 
    
         
            +
                
         
     | 
| 
      
 188 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 189 
     | 
    
         
            +
              
         
     | 
| 
      
 190 
     | 
    
         
            +
              
         
     | 
| 
      
 191 
     | 
    
         
            +
              
         
     | 
| 
      
 192 
     | 
    
         
            +
              
         
     | 
| 
      
 193 
     | 
    
         
            +
              
         
     | 
| 
      
 194 
     | 
    
         
            +
              
         
     | 
| 
      
 195 
     | 
    
         
            +
              
         
     | 
| 
      
 196 
     | 
    
         
            +
             
     | 
| 
      
 197 
     | 
    
         
            +
              
         
     | 
| 
      
 198 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'><p>Adds a default list of platforms that can be recognized.</p>
         
     | 
| 
      
 199 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 200 
     | 
    
         
            +
              
         
     | 
| 
      
 201 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 202 
     | 
    
         
            +
             
     | 
| 
      
 203 
     | 
    
         
            +
                  
         
     | 
| 
      
 204 
     | 
    
         
            +
                </ul>
         
     | 
| 
      
 205 
     | 
    
         
            +
              
         
     | 
| 
      
 206 
     | 
    
         
            +
             
     | 
| 
      
 207 
     | 
    
         
            +
             
     | 
| 
      
 208 
     | 
    
         
            +
             
     | 
| 
      
 209 
     | 
    
         
            +
              <div id="instance_method_details" class="method_details_list">
         
     | 
| 
      
 210 
     | 
    
         
            +
                <h2>Instance Method Details</h2>
         
     | 
| 
      
 211 
     | 
    
         
            +
             
     | 
| 
      
 212 
     | 
    
         
            +
                
         
     | 
| 
      
 213 
     | 
    
         
            +
                  <div class="method_details first">
         
     | 
| 
      
 214 
     | 
    
         
            +
              <h3 class="signature first" id="add-instance_method">
         
     | 
| 
      
 215 
     | 
    
         
            +
              
         
     | 
| 
      
 216 
     | 
    
         
            +
                - (<tt>Boolean</tt>) <strong>add</strong>(type, definition) 
         
     | 
| 
      
 217 
     | 
    
         
            +
              
         
     | 
| 
      
 218 
     | 
    
         
            +
             
     | 
| 
      
 219 
     | 
    
         
            +
              
         
     | 
| 
      
 220 
     | 
    
         
            +
             
     | 
| 
      
 221 
     | 
    
         
            +
              
         
     | 
| 
      
 222 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 223 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 224 
     | 
    
         
            +
                <p>Adds a definitions for recognition.</p>
         
     | 
| 
      
 225 
     | 
    
         
            +
             
     | 
| 
      
 226 
     | 
    
         
            +
             
     | 
| 
      
 227 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 228 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 229 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 230 
     | 
    
         
            +
              <p class="tag_title">Parameters:</p>
         
     | 
| 
      
 231 
     | 
    
         
            +
            <ul class="param">
         
     | 
| 
      
 232 
     | 
    
         
            +
              
         
     | 
| 
      
 233 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 234 
     | 
    
         
            +
                  
         
     | 
| 
      
 235 
     | 
    
         
            +
                    <span class='name'>type</span>
         
     | 
| 
      
 236 
     | 
    
         
            +
                  
         
     | 
| 
      
 237 
     | 
    
         
            +
                  
         
     | 
| 
      
 238 
     | 
    
         
            +
                    <span class='type'>(<tt>Symbol</tt>)</span>
         
     | 
| 
      
 239 
     | 
    
         
            +
                  
         
     | 
| 
      
 240 
     | 
    
         
            +
                  
         
     | 
| 
      
 241 
     | 
    
         
            +
                  
         
     | 
| 
      
 242 
     | 
    
         
            +
                    —
         
     | 
| 
      
 243 
     | 
    
         
            +
                    <div class='inline'><p>The type of the definition. Can be <code>:browsers</code>, <code>:platforms</code> or <code>:languages</code>.</p>
         
     | 
| 
      
 244 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 245 
     | 
    
         
            +
                  
         
     | 
| 
      
 246 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 247 
     | 
    
         
            +
              
         
     | 
| 
      
 248 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 249 
     | 
    
         
            +
                  
         
     | 
| 
      
 250 
     | 
    
         
            +
                    <span class='name'>definition</span>
         
     | 
| 
      
 251 
     | 
    
         
            +
                  
         
     | 
| 
      
 252 
     | 
    
         
            +
                  
         
     | 
| 
      
 253 
     | 
    
         
            +
                    <span class='type'>(<tt><span class='object_link'><a href="../../Definition.html" title="Brauser::Definition (class)">Definition</a></span>|Array</tt>)</span>
         
     | 
| 
      
 254 
     | 
    
         
            +
                  
         
     | 
| 
      
 255 
     | 
    
         
            +
                  
         
     | 
| 
      
 256 
     | 
    
         
            +
                  
         
     | 
| 
      
 257 
     | 
    
         
            +
                    —
         
     | 
| 
      
 258 
     | 
    
         
            +
                    <div class='inline'><p>The definition to add. Can be also an array of definitions.</p>
         
     | 
| 
      
 259 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 260 
     | 
    
         
            +
                  
         
     | 
| 
      
 261 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 262 
     | 
    
         
            +
              
         
     | 
| 
      
 263 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 264 
     | 
    
         
            +
             
     | 
| 
      
 265 
     | 
    
         
            +
            <p class="tag_title">Returns:</p>
         
     | 
| 
      
 266 
     | 
    
         
            +
            <ul class="return">
         
     | 
| 
      
 267 
     | 
    
         
            +
              
         
     | 
| 
      
 268 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 269 
     | 
    
         
            +
                  
         
     | 
| 
      
 270 
     | 
    
         
            +
                  
         
     | 
| 
      
 271 
     | 
    
         
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         
     | 
| 
      
 272 
     | 
    
         
            +
                  
         
     | 
| 
      
 273 
     | 
    
         
            +
                  
         
     | 
| 
      
 274 
     | 
    
         
            +
                  
         
     | 
| 
      
 275 
     | 
    
         
            +
                    —
         
     | 
| 
      
 276 
     | 
    
         
            +
                    <div class='inline'><p><code>true</code> if at least one definition has been added, <code>false</code> otherwise.</p>
         
     | 
| 
      
 277 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 278 
     | 
    
         
            +
                  
         
     | 
| 
      
 279 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 280 
     | 
    
         
            +
              
         
     | 
| 
      
 281 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 282 
     | 
    
         
            +
             
     | 
| 
      
 283 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 284 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 285 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 286 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 287 
     | 
    
         
            +
             
     | 
| 
      
 288 
     | 
    
         
            +
             
     | 
| 
      
 289 
     | 
    
         
            +
            21
         
     | 
| 
      
 290 
     | 
    
         
            +
            22
         
     | 
| 
      
 291 
     | 
    
         
            +
            23
         
     | 
| 
      
 292 
     | 
    
         
            +
            24
         
     | 
| 
      
 293 
     | 
    
         
            +
            25
         
     | 
| 
      
 294 
     | 
    
         
            +
            26
         
     | 
| 
      
 295 
     | 
    
         
            +
            27
         
     | 
| 
      
 296 
     | 
    
         
            +
            28
         
     | 
| 
      
 297 
     | 
    
         
            +
            29
         
     | 
| 
      
 298 
     | 
    
         
            +
            30
         
     | 
| 
      
 299 
     | 
    
         
            +
            31
         
     | 
| 
      
 300 
     | 
    
         
            +
            32
         
     | 
| 
      
 301 
     | 
    
         
            +
            33
         
     | 
| 
      
 302 
     | 
    
         
            +
            34
         
     | 
| 
      
 303 
     | 
    
         
            +
            35</pre>
         
     | 
| 
      
 304 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 305 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 306 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/register.rb', line 21</span>
         
     | 
| 
      
 307 
     | 
    
         
            +
             
     | 
| 
      
 308 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_definition'>definition</span><span class='rparen'>)</span>
         
     | 
| 
      
 309 
     | 
    
         
            +
              <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>false</span>
         
     | 
| 
      
 310 
     | 
    
         
            +
             
     | 
| 
      
 311 
     | 
    
         
            +
              <span class='kw'>if</span> <span class='lbracket'>[</span><span class='symbol'>:browsers</span><span class='comma'>,</span> <span class='symbol'>:platforms</span><span class='comma'>,</span> <span class='symbol'>:languages</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
         
     | 
| 
      
 312 
     | 
    
         
            +
                <span class='id identifier rubyid_prepare_definitions_for'>prepare_definitions_for</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
         
     | 
| 
      
 313 
     | 
    
         
            +
             
     | 
| 
      
 314 
     | 
    
         
            +
                <span class='id identifier rubyid_definition'>definition</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_d'>d</span><span class='op'>|</span>
         
     | 
| 
      
 315 
     | 
    
         
            +
                  <span class='kw'>next</span> <span class='kw'>unless</span> <span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='rparen'>)</span>
         
     | 
| 
      
 316 
     | 
    
         
            +
                  <span class='ivar'>@definitions</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_tag'>tag</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_d'>d</span>
         
     | 
| 
      
 317 
     | 
    
         
            +
                  <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>true</span>
         
     | 
| 
      
 318 
     | 
    
         
            +
                <span class='kw'>end</span>
         
     | 
| 
      
 319 
     | 
    
         
            +
              <span class='kw'>end</span>
         
     | 
| 
      
 320 
     | 
    
         
            +
             
     | 
| 
      
 321 
     | 
    
         
            +
              <span class='id identifier rubyid_rv'>rv</span>
         
     | 
| 
      
 322 
     | 
    
         
            +
            <span class='kw'>end</span></pre>
         
     | 
| 
      
 323 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 324 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 325 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 326 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 327 
     | 
    
         
            +
                
         
     | 
| 
      
 328 
     | 
    
         
            +
                  <div class="method_details ">
         
     | 
| 
      
 329 
     | 
    
         
            +
              <h3 class="signature " id="add_default_browsers-instance_method">
         
     | 
| 
      
 330 
     | 
    
         
            +
              
         
     | 
| 
      
 331 
     | 
    
         
            +
                - (<tt>Boolean</tt>) <strong>add_default_browsers</strong> 
         
     | 
| 
      
 332 
     | 
    
         
            +
              
         
     | 
| 
      
 333 
     | 
    
         
            +
             
     | 
| 
      
 334 
     | 
    
         
            +
              
         
     | 
| 
      
 335 
     | 
    
         
            +
             
     | 
| 
      
 336 
     | 
    
         
            +
              
         
     | 
| 
      
 337 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 338 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 339 
     | 
    
         
            +
                <p>Adds definitions for a default list of browsers that can be recognized.</p>
         
     | 
| 
      
 340 
     | 
    
         
            +
             
     | 
| 
      
 341 
     | 
    
         
            +
             
     | 
| 
      
 342 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 343 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 344 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 345 
     | 
    
         
            +
              
         
     | 
| 
      
 346 
     | 
    
         
            +
            <p class="tag_title">Returns:</p>
         
     | 
| 
      
 347 
     | 
    
         
            +
            <ul class="return">
         
     | 
| 
      
 348 
     | 
    
         
            +
              
         
     | 
| 
      
 349 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 350 
     | 
    
         
            +
                  
         
     | 
| 
      
 351 
     | 
    
         
            +
                  
         
     | 
| 
      
 352 
     | 
    
         
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         
     | 
| 
      
 353 
     | 
    
         
            +
                  
         
     | 
| 
      
 354 
     | 
    
         
            +
                  
         
     | 
| 
      
 355 
     | 
    
         
            +
                  
         
     | 
| 
      
 356 
     | 
    
         
            +
                    —
         
     | 
| 
      
 357 
     | 
    
         
            +
                    <div class='inline'><p><code>true</code> if at least one browser has been added, <code>false</code> otherwise.</p>
         
     | 
| 
      
 358 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 359 
     | 
    
         
            +
                  
         
     | 
| 
      
 360 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 361 
     | 
    
         
            +
              
         
     | 
| 
      
 362 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 363 
     | 
    
         
            +
             
     | 
| 
      
 364 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 365 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 366 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 367 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 368 
     | 
    
         
            +
             
     | 
| 
      
 369 
     | 
    
         
            +
             
     | 
| 
      
 370 
     | 
    
         
            +
            40
         
     | 
| 
      
 371 
     | 
    
         
            +
            41
         
     | 
| 
      
 372 
     | 
    
         
            +
            42
         
     | 
| 
      
 373 
     | 
    
         
            +
            43
         
     | 
| 
      
 374 
     | 
    
         
            +
            44
         
     | 
| 
      
 375 
     | 
    
         
            +
            45</pre>
         
     | 
| 
      
 376 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 377 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 378 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/register.rb', line 40</span>
         
     | 
| 
      
 379 
     | 
    
         
            +
             
     | 
| 
      
 380 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_add_default_browsers'>add_default_browsers</span>
         
     | 
| 
      
 381 
     | 
    
         
            +
              <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='symbol'>:browsers</span><span class='comma'>,</span> <span class='lparen'>(</span>
         
     | 
| 
      
 382 
     | 
    
         
            +
                <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>MOBILE_BROWSERS</span> <span class='op'>+</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>MAJOR_DESKTOP_BROWSERS</span> <span class='op'>+</span>
         
     | 
| 
      
 383 
     | 
    
         
            +
                <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>MSIE_BROWSERS</span> <span class='op'>+</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>MINOR_DESKTOP_BROWSERS</span>
         
     | 
| 
      
 384 
     | 
    
         
            +
              <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_browser'>browser</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:new</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_browser'>browser</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
         
     | 
| 
      
 385 
     | 
    
         
            +
            <span class='kw'>end</span></pre>
         
     | 
| 
      
 386 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 387 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 388 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 389 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 390 
     | 
    
         
            +
                
         
     | 
| 
      
 391 
     | 
    
         
            +
                  <div class="method_details ">
         
     | 
| 
      
 392 
     | 
    
         
            +
              <h3 class="signature " id="add_default_languages-instance_method">
         
     | 
| 
      
 393 
     | 
    
         
            +
              
         
     | 
| 
      
 394 
     | 
    
         
            +
                - (<tt>Boolean</tt>) <strong>add_default_languages</strong> 
         
     | 
| 
      
 395 
     | 
    
         
            +
              
         
     | 
| 
      
 396 
     | 
    
         
            +
             
     | 
| 
      
 397 
     | 
    
         
            +
              
         
     | 
| 
      
 398 
     | 
    
         
            +
             
     | 
| 
      
 399 
     | 
    
         
            +
              
         
     | 
| 
      
 400 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 401 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 402 
     | 
    
         
            +
                <p>Adds a default list of languages that can be recognized.</p>
         
     | 
| 
      
 403 
     | 
    
         
            +
             
     | 
| 
      
 404 
     | 
    
         
            +
             
     | 
| 
      
 405 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 406 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 407 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 408 
     | 
    
         
            +
              
         
     | 
| 
      
 409 
     | 
    
         
            +
            <p class="tag_title">Returns:</p>
         
     | 
| 
      
 410 
     | 
    
         
            +
            <ul class="return">
         
     | 
| 
      
 411 
     | 
    
         
            +
              
         
     | 
| 
      
 412 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 413 
     | 
    
         
            +
                  
         
     | 
| 
      
 414 
     | 
    
         
            +
                  
         
     | 
| 
      
 415 
     | 
    
         
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         
     | 
| 
      
 416 
     | 
    
         
            +
                  
         
     | 
| 
      
 417 
     | 
    
         
            +
                  
         
     | 
| 
      
 418 
     | 
    
         
            +
                  
         
     | 
| 
      
 419 
     | 
    
         
            +
                    —
         
     | 
| 
      
 420 
     | 
    
         
            +
                    <div class='inline'><p><code>true</code> if at least one language has been added, <code>false</code> otherwise.</p>
         
     | 
| 
      
 421 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 422 
     | 
    
         
            +
                  
         
     | 
| 
      
 423 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 424 
     | 
    
         
            +
              
         
     | 
| 
      
 425 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 426 
     | 
    
         
            +
             
     | 
| 
      
 427 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 428 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 429 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 430 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 431 
     | 
    
         
            +
             
     | 
| 
      
 432 
     | 
    
         
            +
             
     | 
| 
      
 433 
     | 
    
         
            +
            57
         
     | 
| 
      
 434 
     | 
    
         
            +
            58
         
     | 
| 
      
 435 
     | 
    
         
            +
            59</pre>
         
     | 
| 
      
 436 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 437 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 438 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/register.rb', line 57</span>
         
     | 
| 
      
 439 
     | 
    
         
            +
             
     | 
| 
      
 440 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_add_default_languages'>add_default_languages</span>
         
     | 
| 
      
 441 
     | 
    
         
            +
              <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='symbol'>:languages</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>LANGUAGES</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_code'>code</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_code'>code</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
         
     | 
| 
      
 442 
     | 
    
         
            +
            <span class='kw'>end</span></pre>
         
     | 
| 
      
 443 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 444 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 445 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 446 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 447 
     | 
    
         
            +
                
         
     | 
| 
      
 448 
     | 
    
         
            +
                  <div class="method_details ">
         
     | 
| 
      
 449 
     | 
    
         
            +
              <h3 class="signature " id="add_default_platforms-instance_method">
         
     | 
| 
      
 450 
     | 
    
         
            +
              
         
     | 
| 
      
 451 
     | 
    
         
            +
                - (<tt>Boolean</tt>) <strong>add_default_platforms</strong> 
         
     | 
| 
      
 452 
     | 
    
         
            +
              
         
     | 
| 
      
 453 
     | 
    
         
            +
             
     | 
| 
      
 454 
     | 
    
         
            +
              
         
     | 
| 
      
 455 
     | 
    
         
            +
             
     | 
| 
      
 456 
     | 
    
         
            +
              
         
     | 
| 
      
 457 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 458 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 459 
     | 
    
         
            +
                <p>Adds a default list of platforms that can be recognized.</p>
         
     | 
| 
      
 460 
     | 
    
         
            +
             
     | 
| 
      
 461 
     | 
    
         
            +
             
     | 
| 
      
 462 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 463 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 464 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 465 
     | 
    
         
            +
              
         
     | 
| 
      
 466 
     | 
    
         
            +
            <p class="tag_title">Returns:</p>
         
     | 
| 
      
 467 
     | 
    
         
            +
            <ul class="return">
         
     | 
| 
      
 468 
     | 
    
         
            +
              
         
     | 
| 
      
 469 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 470 
     | 
    
         
            +
                  
         
     | 
| 
      
 471 
     | 
    
         
            +
                  
         
     | 
| 
      
 472 
     | 
    
         
            +
                    <span class='type'>(<tt>Boolean</tt>)</span>
         
     | 
| 
      
 473 
     | 
    
         
            +
                  
         
     | 
| 
      
 474 
     | 
    
         
            +
                  
         
     | 
| 
      
 475 
     | 
    
         
            +
                  
         
     | 
| 
      
 476 
     | 
    
         
            +
                    —
         
     | 
| 
      
 477 
     | 
    
         
            +
                    <div class='inline'><p><code>true</code> if at least one platform has been added, <code>false</code> otherwise.</p>
         
     | 
| 
      
 478 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 479 
     | 
    
         
            +
                  
         
     | 
| 
      
 480 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 481 
     | 
    
         
            +
              
         
     | 
| 
      
 482 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 483 
     | 
    
         
            +
             
     | 
| 
      
 484 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 485 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 486 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 487 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 488 
     | 
    
         
            +
             
     | 
| 
      
 489 
     | 
    
         
            +
             
     | 
| 
      
 490 
     | 
    
         
            +
            50
         
     | 
| 
      
 491 
     | 
    
         
            +
            51
         
     | 
| 
      
 492 
     | 
    
         
            +
            52</pre>
         
     | 
| 
      
 493 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 494 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 495 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/brauser/browseable/register.rb', line 50</span>
         
     | 
| 
      
 496 
     | 
    
         
            +
             
     | 
| 
      
 497 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_add_default_platforms'>add_default_platforms</span>
         
     | 
| 
      
 498 
     | 
    
         
            +
              <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='symbol'>:platforms</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>PLATFORMS</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_platform'>platform</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:new</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_platform'>platform</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
         
     | 
| 
      
 499 
     | 
    
         
            +
            <span class='kw'>end</span></pre>
         
     | 
| 
      
 500 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 501 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 502 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 503 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 504 
     | 
    
         
            +
                
         
     | 
| 
      
 505 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 506 
     | 
    
         
            +
             
     | 
| 
      
 507 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 508 
     | 
    
         
            +
             
     | 
| 
      
 509 
     | 
    
         
            +
                <div id="footer">
         
     | 
| 
      
 510 
     | 
    
         
            +
              Generated on Sat May 10 13:59:11 2014 by
         
     | 
| 
      
 511 
     | 
    
         
            +
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
      
 512 
     | 
    
         
            +
              0.8.7.4 (ruby-2.1.0).
         
     | 
| 
      
 513 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 514 
     | 
    
         
            +
             
     | 
| 
      
 515 
     | 
    
         
            +
              </body>
         
     | 
| 
      
 516 
     | 
    
         
            +
            </html>
         
     |