brauser 1.0.7 → 2.0.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.
- data/.travis.yml +1 -1
- data/Gemfile +1 -1
- data/README.md +6 -3
- data/Rakefile +1 -1
- data/brauser.gemspec +10 -8
- data/doc/Brauser.html +4 -4
- data/doc/Brauser/Browser.html +1722 -3546
- data/doc/Brauser/BrowserMethods.html +125 -0
- data/doc/Brauser/BrowserMethods/Attributes.html +484 -0
- data/doc/Brauser/BrowserMethods/General.html +134 -0
- data/doc/Brauser/BrowserMethods/General/ClassMethods.html +529 -0
- data/doc/Brauser/BrowserMethods/Parsing.html +350 -0
- data/doc/Brauser/BrowserMethods/PartialQuerying.html +629 -0
- data/doc/Brauser/BrowserMethods/Querying.html +583 -0
- data/doc/Brauser/BrowserMethods/Register.html +134 -0
- data/doc/Brauser/BrowserMethods/Register/ClassMethods.html +1081 -0
- data/doc/Brauser/Hooks.html +3 -3
- data/doc/Brauser/Hooks/RubyOnRails.html +3 -3
- data/doc/Brauser/Query.html +470 -52
- data/doc/Brauser/Version.html +5 -5
- data/doc/_index.html +102 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +11 -8
- data/doc/frames.html +1 -1
- data/doc/index.html +11 -8
- data/doc/method_list.html +61 -61
- data/doc/top-level-namespace.html +3 -3
- data/lib/brauser.rb +1 -1
- data/lib/brauser/browser.rb +725 -674
- data/lib/brauser/hooks.rb +1 -1
- data/lib/brauser/query.rb +6 -4
- data/lib/brauser/version.rb +3 -3
- data/spec/brauser/browser_spec.rb +15 -38
- data/spec/brauser/hooks_spec.rb +1 -1
- data/spec/brauser/query_spec.rb +1 -1
- data/spec/brauser_spec.rb +1 -1
- data/spec/coverage_helper.rb +1 -1
- data/spec/frameworks_helper.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +25 -22
data/doc/Brauser/Hooks.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::Hooks
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -116,9 +116,9 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Sat Feb 2 17:47:18 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.8.
|
121
|
+
0.8.3 (ruby-1.9.3).
|
122
122
|
</div>
|
123
123
|
|
124
124
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Brauser::Hooks::RubyOnRails
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -323,9 +323,9 @@
|
|
323
323
|
</div>
|
324
324
|
|
325
325
|
<div id="footer">
|
326
|
-
Generated on
|
326
|
+
Generated on Sat Feb 2 17:47:18 2013 by
|
327
327
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
328
|
-
0.8.
|
328
|
+
0.8.3 (ruby-1.9.3).
|
329
329
|
</div>
|
330
330
|
|
331
331
|
</body>
|
data/doc/Brauser/Query.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Brauser::Query
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.3
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -124,7 +124,7 @@
|
|
124
124
|
<li class="public ">
|
125
125
|
<span class="summary_signature">
|
126
126
|
|
127
|
-
<a href="#result-instance_method" title="#result (instance method)">- (
|
127
|
+
<a href="#result-instance_method" title="#result (instance method)">- (Boolean) <strong>result</strong> </a>
|
128
128
|
|
129
129
|
|
130
130
|
|
@@ -150,7 +150,7 @@
|
|
150
150
|
<li class="public ">
|
151
151
|
<span class="summary_signature">
|
152
152
|
|
153
|
-
<a href="#target-instance_method" title="#target (instance method)">- (
|
153
|
+
<a href="#target-instance_method" title="#target (instance method)">- (Browser) <strong>target</strong> </a>
|
154
154
|
|
155
155
|
|
156
156
|
|
@@ -462,13 +462,13 @@
|
|
462
462
|
<pre class="lines">
|
463
463
|
|
464
464
|
|
465
|
-
27
|
466
|
-
28
|
467
465
|
29
|
468
|
-
30
|
466
|
+
30
|
467
|
+
31
|
468
|
+
32</pre>
|
469
469
|
</td>
|
470
470
|
<td>
|
471
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
471
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 29</span>
|
472
472
|
|
473
473
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
474
474
|
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
@@ -489,7 +489,7 @@
|
|
489
489
|
<div class="method_details first">
|
490
490
|
<h3 class="signature first" id="result-instance_method">
|
491
491
|
|
492
|
-
- (<tt>
|
492
|
+
- (<tt>Boolean</tt>) <strong>result</strong>
|
493
493
|
|
494
494
|
|
495
495
|
|
@@ -504,6 +504,23 @@
|
|
504
504
|
</div>
|
505
505
|
<div class="tags">
|
506
506
|
|
507
|
+
<p class="tag_title">Returns:</p>
|
508
|
+
<ul class="return">
|
509
|
+
|
510
|
+
<li>
|
511
|
+
|
512
|
+
|
513
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
—
|
518
|
+
<div class='inline'><p>The current result.</p>
|
519
|
+
</div>
|
520
|
+
|
521
|
+
</li>
|
522
|
+
|
523
|
+
</ul>
|
507
524
|
|
508
525
|
</div><table class="source_code">
|
509
526
|
<tr>
|
@@ -513,13 +530,205 @@
|
|
513
530
|
|
514
531
|
21
|
515
532
|
22
|
516
|
-
23
|
533
|
+
23
|
534
|
+
24
|
535
|
+
25
|
536
|
+
26
|
537
|
+
27
|
538
|
+
28
|
539
|
+
29
|
540
|
+
30
|
541
|
+
31
|
542
|
+
32
|
543
|
+
33
|
544
|
+
34
|
545
|
+
35
|
546
|
+
36
|
547
|
+
37
|
548
|
+
38
|
549
|
+
39
|
550
|
+
40
|
551
|
+
41
|
552
|
+
42
|
553
|
+
43
|
554
|
+
44
|
555
|
+
45
|
556
|
+
46
|
557
|
+
47
|
558
|
+
48
|
559
|
+
49
|
560
|
+
50
|
561
|
+
51
|
562
|
+
52
|
563
|
+
53
|
564
|
+
54
|
565
|
+
55
|
566
|
+
56
|
567
|
+
57
|
568
|
+
58
|
569
|
+
59
|
570
|
+
60
|
571
|
+
61
|
572
|
+
62
|
573
|
+
63
|
574
|
+
64
|
575
|
+
65
|
576
|
+
66
|
577
|
+
67
|
578
|
+
68
|
579
|
+
69
|
580
|
+
70
|
581
|
+
71
|
582
|
+
72
|
583
|
+
73
|
584
|
+
74
|
585
|
+
75
|
586
|
+
76
|
587
|
+
77
|
588
|
+
78
|
589
|
+
79
|
590
|
+
80
|
591
|
+
81
|
592
|
+
82
|
593
|
+
83
|
594
|
+
84
|
595
|
+
85
|
596
|
+
86
|
597
|
+
87
|
598
|
+
88
|
599
|
+
89
|
600
|
+
90
|
601
|
+
91
|
602
|
+
92
|
603
|
+
93
|
604
|
+
94
|
605
|
+
95
|
606
|
+
96
|
607
|
+
97
|
608
|
+
98
|
609
|
+
99
|
610
|
+
100
|
611
|
+
101
|
612
|
+
102
|
613
|
+
103
|
614
|
+
104
|
615
|
+
105
|
616
|
+
106
|
617
|
+
107
|
618
|
+
108
|
619
|
+
109
|
620
|
+
110
|
621
|
+
111
|
622
|
+
112
|
623
|
+
113
|
624
|
+
114
|
625
|
+
115
|
626
|
+
116
|
627
|
+
117
|
628
|
+
118
|
629
|
+
119</pre>
|
517
630
|
</td>
|
518
631
|
<td>
|
519
632
|
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 21</span>
|
520
633
|
|
521
|
-
<span class='kw'>
|
522
|
-
<span class='
|
634
|
+
<span class='kw'>class</span> <span class='const'>Query</span>
|
635
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:target</span>
|
636
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:result</span>
|
637
|
+
|
638
|
+
<span class='comment'># Creates a new query.
|
639
|
+
</span> <span class='comment'>#
|
640
|
+
</span> <span class='comment'># @param target [Browser] The current browser.
|
641
|
+
</span> <span class='comment'># @param result [Boolean] The current result.
|
642
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
643
|
+
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
644
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span>
|
645
|
+
<span class='kw'>end</span>
|
646
|
+
|
647
|
+
<span class='comment'># Checks if the browser is a specific name and optionally of a specific version and platform.
|
648
|
+
</span> <span class='comment'>#
|
649
|
+
</span> <span class='comment'># @see #version?
|
650
|
+
</span> <span class='comment'># @see #on?
|
651
|
+
</span> <span class='comment'>#
|
652
|
+
</span> <span class='comment'># @param names [Symbol|Array] A list of specific names to match. Also, this meta-names are supported: `:capable` and `:tablet`.
|
653
|
+
</span> <span class='comment'># @param versions [Hash] An hash with specific version to match against. Need to be in any form that {#v} understands.
|
654
|
+
</span> <span class='comment'># @param platforms [Symbol|Array] A list of specific platform to match. Valid values are all those possible for the platform attribute.
|
655
|
+
</span> <span class='comment'># @return [Query] The query itself.
|
656
|
+
</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>
|
657
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
658
|
+
<span class='kw'>self</span>
|
659
|
+
<span class='kw'>end</span>
|
660
|
+
|
661
|
+
<span class='comment'># Checks if the browser is a specific name and optionally of a specific version and platform.
|
662
|
+
</span> <span class='comment'>#
|
663
|
+
</span> <span class='comment'># This version returns a boolean and it is equal to append a call to {#result} to the method {#is}.
|
664
|
+
</span> <span class='comment'>#
|
665
|
+
</span> <span class='comment'># @see #version?
|
666
|
+
</span> <span class='comment'># @see #on?
|
667
|
+
</span> <span class='comment'>#
|
668
|
+
</span> <span class='comment'># @param names [Symbol|Array] A list of specific names to match. Also, this meta-names are supported: `:capable` and `:tablet`.
|
669
|
+
</span> <span class='comment'># @param versions [Hash] An hash with specific version to match against. Need to be in any form that {#v} understands.
|
670
|
+
</span> <span class='comment'># @param platforms [Symbol|Array] A list of specific platform to match. Valid values are all those possible for the platform attribute.
|
671
|
+
</span> <span class='comment'># @return [Boolean] `true` if current browser matches, `false` otherwise.
|
672
|
+
</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>
|
673
|
+
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
674
|
+
<span class='kw'>end</span>
|
675
|
+
|
676
|
+
<span class='comment'># Checks if the brower is a specific version.
|
677
|
+
</span> <span class='comment'>#
|
678
|
+
</span> <span class='comment'># @param versions [String|Hash] A string in the form `operator version && ...` (example: `>= 7 && < 4`) or an hash with specific version to match against, in form `{:operator => version}`, where operator is one of `:lt, :lte, :eq, :gt, :gte`.
|
679
|
+
</span> <span class='comment'># @return [Query] The query itself.
|
680
|
+
</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>
|
681
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
682
|
+
<span class='kw'>self</span>
|
683
|
+
<span class='kw'>end</span>
|
684
|
+
|
685
|
+
<span class='comment'># Checks if the brower is a specific version.
|
686
|
+
</span> <span class='comment'>#
|
687
|
+
</span> <span class='comment'># This version returns a boolean and it is equal to append a call to {#result} to the method {#v}.
|
688
|
+
</span> <span class='comment'>#
|
689
|
+
</span> <span class='comment'># @param versions [String|Hash] A string in the form `operator version && ...` (example: `>= 7 && < 4`) or an hash with specific version to match against, in form `{:operator => version}`, where operator is one of `:lt, :lte, :eq, :gt, :gte`.
|
690
|
+
</span> <span class='comment'># @return [Boolean] `true` if current browser matches, `false` otherwise.
|
691
|
+
</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>
|
692
|
+
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
693
|
+
<span class='kw'>end</span>
|
694
|
+
|
695
|
+
<span class='comment'># Check if the browser is on a specific platform.
|
696
|
+
</span> <span class='comment'>#
|
697
|
+
</span> <span class='comment'># @param platforms [Symbol|Array] A list of specific platform to match.
|
698
|
+
</span> <span class='comment'># @return [Query] The query itself.
|
699
|
+
</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>
|
700
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
701
|
+
<span class='kw'>self</span>
|
702
|
+
<span class='kw'>end</span>
|
703
|
+
|
704
|
+
<span class='comment'># Check if the browser is on a specific platform.
|
705
|
+
</span> <span class='comment'>#
|
706
|
+
</span> <span class='comment'># This version returns a boolean and it is equal to append a call to {#result} to the method {#on}.
|
707
|
+
</span> <span class='comment'>#
|
708
|
+
</span> <span class='comment'># @param platforms [Symbol|Array] A list of specific platform to match.
|
709
|
+
</span> <span class='comment'># @return [Boolean] `true` if current browser matches, `false` otherwise.
|
710
|
+
</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>
|
711
|
+
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
712
|
+
<span class='kw'>end</span>
|
713
|
+
|
714
|
+
<span class='comment'># Check if the browser accepts the specified languages.
|
715
|
+
</span> <span class='comment'>#
|
716
|
+
</span> <span class='comment'># @param langs [String|Array] A list of languages to match against.
|
717
|
+
</span> <span class='comment'># @return [Query] The query itself.
|
718
|
+
</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>
|
719
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
720
|
+
<span class='kw'>self</span>
|
721
|
+
<span class='kw'>end</span>
|
722
|
+
|
723
|
+
<span class='comment'># Check if the browser accepts the specified languages.
|
724
|
+
</span> <span class='comment'>#
|
725
|
+
</span> <span class='comment'># This version returns a boolean and it is equal to append a call to {#result} to the method {#accepts}.
|
726
|
+
</span> <span class='comment'>#
|
727
|
+
</span> <span class='comment'># @param langs [String|Array] A list of languages to match against.
|
728
|
+
</span> <span class='comment'># @return [Boolean] `true` if current browser matches, `false` otherwise.
|
729
|
+
</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>
|
730
|
+
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
731
|
+
<span class='kw'>end</span>
|
523
732
|
<span class='kw'>end</span></pre>
|
524
733
|
</td>
|
525
734
|
</tr>
|
@@ -531,7 +740,7 @@
|
|
531
740
|
<div class="method_details ">
|
532
741
|
<h3 class="signature " id="target-instance_method">
|
533
742
|
|
534
|
-
- (<tt>
|
743
|
+
- (<tt><span class='object_link'><a href="Browser.html" title="Brauser::Browser (class)">Browser</a></span></tt>) <strong>target</strong>
|
535
744
|
|
536
745
|
|
537
746
|
|
@@ -546,6 +755,23 @@
|
|
546
755
|
</div>
|
547
756
|
<div class="tags">
|
548
757
|
|
758
|
+
<p class="tag_title">Returns:</p>
|
759
|
+
<ul class="return">
|
760
|
+
|
761
|
+
<li>
|
762
|
+
|
763
|
+
|
764
|
+
<span class='type'>(<tt><span class='object_link'><a href="Browser.html" title="Brauser::Browser (class)">Browser</a></span></tt>)</span>
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
—
|
769
|
+
<div class='inline'><p>The current browser.</p>
|
770
|
+
</div>
|
771
|
+
|
772
|
+
</li>
|
773
|
+
|
774
|
+
</ul>
|
549
775
|
|
550
776
|
</div><table class="source_code">
|
551
777
|
<tr>
|
@@ -553,15 +779,207 @@
|
|
553
779
|
<pre class="lines">
|
554
780
|
|
555
781
|
|
556
|
-
|
557
|
-
|
558
|
-
|
782
|
+
21
|
783
|
+
22
|
784
|
+
23
|
785
|
+
24
|
786
|
+
25
|
787
|
+
26
|
788
|
+
27
|
789
|
+
28
|
790
|
+
29
|
791
|
+
30
|
792
|
+
31
|
793
|
+
32
|
794
|
+
33
|
795
|
+
34
|
796
|
+
35
|
797
|
+
36
|
798
|
+
37
|
799
|
+
38
|
800
|
+
39
|
801
|
+
40
|
802
|
+
41
|
803
|
+
42
|
804
|
+
43
|
805
|
+
44
|
806
|
+
45
|
807
|
+
46
|
808
|
+
47
|
809
|
+
48
|
810
|
+
49
|
811
|
+
50
|
812
|
+
51
|
813
|
+
52
|
814
|
+
53
|
815
|
+
54
|
816
|
+
55
|
817
|
+
56
|
818
|
+
57
|
819
|
+
58
|
820
|
+
59
|
821
|
+
60
|
822
|
+
61
|
823
|
+
62
|
824
|
+
63
|
825
|
+
64
|
826
|
+
65
|
827
|
+
66
|
828
|
+
67
|
829
|
+
68
|
830
|
+
69
|
831
|
+
70
|
832
|
+
71
|
833
|
+
72
|
834
|
+
73
|
835
|
+
74
|
836
|
+
75
|
837
|
+
76
|
838
|
+
77
|
839
|
+
78
|
840
|
+
79
|
841
|
+
80
|
842
|
+
81
|
843
|
+
82
|
844
|
+
83
|
845
|
+
84
|
846
|
+
85
|
847
|
+
86
|
848
|
+
87
|
849
|
+
88
|
850
|
+
89
|
851
|
+
90
|
852
|
+
91
|
853
|
+
92
|
854
|
+
93
|
855
|
+
94
|
856
|
+
95
|
857
|
+
96
|
858
|
+
97
|
859
|
+
98
|
860
|
+
99
|
861
|
+
100
|
862
|
+
101
|
863
|
+
102
|
864
|
+
103
|
865
|
+
104
|
866
|
+
105
|
867
|
+
106
|
868
|
+
107
|
869
|
+
108
|
870
|
+
109
|
871
|
+
110
|
872
|
+
111
|
873
|
+
112
|
874
|
+
113
|
875
|
+
114
|
876
|
+
115
|
877
|
+
116
|
878
|
+
117
|
879
|
+
118
|
880
|
+
119</pre>
|
559
881
|
</td>
|
560
882
|
<td>
|
561
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
883
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 21</span>
|
562
884
|
|
563
|
-
<span class='kw'>
|
564
|
-
<span class='
|
885
|
+
<span class='kw'>class</span> <span class='const'>Query</span>
|
886
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:target</span>
|
887
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:result</span>
|
888
|
+
|
889
|
+
<span class='comment'># Creates a new query.
|
890
|
+
</span> <span class='comment'>#
|
891
|
+
</span> <span class='comment'># @param target [Browser] The current browser.
|
892
|
+
</span> <span class='comment'># @param result [Boolean] The current result.
|
893
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
894
|
+
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
895
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_result'>result</span>
|
896
|
+
<span class='kw'>end</span>
|
897
|
+
|
898
|
+
<span class='comment'># Checks if the browser is a specific name and optionally of a specific version and platform.
|
899
|
+
</span> <span class='comment'>#
|
900
|
+
</span> <span class='comment'># @see #version?
|
901
|
+
</span> <span class='comment'># @see #on?
|
902
|
+
</span> <span class='comment'>#
|
903
|
+
</span> <span class='comment'># @param names [Symbol|Array] A list of specific names to match. Also, this meta-names are supported: `:capable` and `:tablet`.
|
904
|
+
</span> <span class='comment'># @param versions [Hash] An hash with specific version to match against. Need to be in any form that {#v} understands.
|
905
|
+
</span> <span class='comment'># @param platforms [Symbol|Array] A list of specific platform to match. Valid values are all those possible for the platform attribute.
|
906
|
+
</span> <span class='comment'># @return [Query] The query itself.
|
907
|
+
</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>
|
908
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
909
|
+
<span class='kw'>self</span>
|
910
|
+
<span class='kw'>end</span>
|
911
|
+
|
912
|
+
<span class='comment'># Checks if the browser is a specific name and optionally of a specific version and platform.
|
913
|
+
</span> <span class='comment'>#
|
914
|
+
</span> <span class='comment'># This version returns a boolean and it is equal to append a call to {#result} to the method {#is}.
|
915
|
+
</span> <span class='comment'>#
|
916
|
+
</span> <span class='comment'># @see #version?
|
917
|
+
</span> <span class='comment'># @see #on?
|
918
|
+
</span> <span class='comment'>#
|
919
|
+
</span> <span class='comment'># @param names [Symbol|Array] A list of specific names to match. Also, this meta-names are supported: `:capable` and `:tablet`.
|
920
|
+
</span> <span class='comment'># @param versions [Hash] An hash with specific version to match against. Need to be in any form that {#v} understands.
|
921
|
+
</span> <span class='comment'># @param platforms [Symbol|Array] A list of specific platform to match. Valid values are all those possible for the platform attribute.
|
922
|
+
</span> <span class='comment'># @return [Boolean] `true` if current browser matches, `false` otherwise.
|
923
|
+
</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>
|
924
|
+
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
925
|
+
<span class='kw'>end</span>
|
926
|
+
|
927
|
+
<span class='comment'># Checks if the brower is a specific version.
|
928
|
+
</span> <span class='comment'>#
|
929
|
+
</span> <span class='comment'># @param versions [String|Hash] A string in the form `operator version && ...` (example: `>= 7 && < 4`) or an hash with specific version to match against, in form `{:operator => version}`, where operator is one of `:lt, :lte, :eq, :gt, :gte`.
|
930
|
+
</span> <span class='comment'># @return [Query] The query itself.
|
931
|
+
</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>
|
932
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
933
|
+
<span class='kw'>self</span>
|
934
|
+
<span class='kw'>end</span>
|
935
|
+
|
936
|
+
<span class='comment'># Checks if the brower is a specific version.
|
937
|
+
</span> <span class='comment'>#
|
938
|
+
</span> <span class='comment'># This version returns a boolean and it is equal to append a call to {#result} to the method {#v}.
|
939
|
+
</span> <span class='comment'>#
|
940
|
+
</span> <span class='comment'># @param versions [String|Hash] A string in the form `operator version && ...` (example: `>= 7 && < 4`) or an hash with specific version to match against, in form `{:operator => version}`, where operator is one of `:lt, :lte, :eq, :gt, :gte`.
|
941
|
+
</span> <span class='comment'># @return [Boolean] `true` if current browser matches, `false` otherwise.
|
942
|
+
</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>
|
943
|
+
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
944
|
+
<span class='kw'>end</span>
|
945
|
+
|
946
|
+
<span class='comment'># Check if the browser is on a specific platform.
|
947
|
+
</span> <span class='comment'>#
|
948
|
+
</span> <span class='comment'># @param platforms [Symbol|Array] A list of specific platform to match.
|
949
|
+
</span> <span class='comment'># @return [Query] The query itself.
|
950
|
+
</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>
|
951
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
952
|
+
<span class='kw'>self</span>
|
953
|
+
<span class='kw'>end</span>
|
954
|
+
|
955
|
+
<span class='comment'># Check if the browser is on a specific platform.
|
956
|
+
</span> <span class='comment'>#
|
957
|
+
</span> <span class='comment'># This version returns a boolean and it is equal to append a call to {#result} to the method {#on}.
|
958
|
+
</span> <span class='comment'>#
|
959
|
+
</span> <span class='comment'># @param platforms [Symbol|Array] A list of specific platform to match.
|
960
|
+
</span> <span class='comment'># @return [Boolean] `true` if current browser matches, `false` otherwise.
|
961
|
+
</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>
|
962
|
+
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
963
|
+
<span class='kw'>end</span>
|
964
|
+
|
965
|
+
<span class='comment'># Check if the browser accepts the specified languages.
|
966
|
+
</span> <span class='comment'>#
|
967
|
+
</span> <span class='comment'># @param langs [String|Array] A list of languages to match against.
|
968
|
+
</span> <span class='comment'># @return [Query] The query itself.
|
969
|
+
</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>
|
970
|
+
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
971
|
+
<span class='kw'>self</span>
|
972
|
+
<span class='kw'>end</span>
|
973
|
+
|
974
|
+
<span class='comment'># Check if the browser accepts the specified languages.
|
975
|
+
</span> <span class='comment'>#
|
976
|
+
</span> <span class='comment'># This version returns a boolean and it is equal to append a call to {#result} to the method {#accepts}.
|
977
|
+
</span> <span class='comment'>#
|
978
|
+
</span> <span class='comment'># @param langs [String|Array] A list of languages to match against.
|
979
|
+
</span> <span class='comment'># @return [Boolean] `true` if current browser matches, `false` otherwise.
|
980
|
+
</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>
|
981
|
+
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
982
|
+
<span class='kw'>end</span>
|
565
983
|
<span class='kw'>end</span></pre>
|
566
984
|
</td>
|
567
985
|
</tr>
|
@@ -638,13 +1056,13 @@
|
|
638
1056
|
<pre class="lines">
|
639
1057
|
|
640
1058
|
|
641
|
-
103
|
642
|
-
104
|
643
1059
|
105
|
644
|
-
106
|
1060
|
+
106
|
1061
|
+
107
|
1062
|
+
108</pre>
|
645
1063
|
</td>
|
646
1064
|
<td>
|
647
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
1065
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 105</span>
|
648
1066
|
|
649
1067
|
<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>
|
650
1068
|
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
@@ -720,12 +1138,12 @@
|
|
720
1138
|
<pre class="lines">
|
721
1139
|
|
722
1140
|
|
723
|
-
|
724
|
-
|
725
|
-
|
1141
|
+
116
|
1142
|
+
117
|
1143
|
+
118</pre>
|
726
1144
|
</td>
|
727
1145
|
<td>
|
728
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
1146
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 116</span>
|
729
1147
|
|
730
1148
|
<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>
|
731
1149
|
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
@@ -841,13 +1259,13 @@
|
|
841
1259
|
<pre class="lines">
|
842
1260
|
|
843
1261
|
|
844
|
-
41
|
845
|
-
42
|
846
1262
|
43
|
847
|
-
44
|
1263
|
+
44
|
1264
|
+
45
|
1265
|
+
46</pre>
|
848
1266
|
</td>
|
849
1267
|
<td>
|
850
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
1268
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 43</span>
|
851
1269
|
|
852
1270
|
<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>
|
853
1271
|
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
@@ -966,12 +1384,12 @@
|
|
966
1384
|
<pre class="lines">
|
967
1385
|
|
968
1386
|
|
969
|
-
|
970
|
-
|
971
|
-
|
1387
|
+
59
|
1388
|
+
60
|
1389
|
+
61</pre>
|
972
1390
|
</td>
|
973
1391
|
<td>
|
974
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
1392
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 59</span>
|
975
1393
|
|
976
1394
|
<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>
|
977
1395
|
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
@@ -1044,13 +1462,13 @@
|
|
1044
1462
|
<pre class="lines">
|
1045
1463
|
|
1046
1464
|
|
1047
|
-
84
|
1048
|
-
85
|
1049
1465
|
86
|
1050
|
-
87
|
1466
|
+
87
|
1467
|
+
88
|
1468
|
+
89</pre>
|
1051
1469
|
</td>
|
1052
1470
|
<td>
|
1053
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
1471
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 86</span>
|
1054
1472
|
|
1055
1473
|
<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>
|
1056
1474
|
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
@@ -1126,12 +1544,12 @@
|
|
1126
1544
|
<pre class="lines">
|
1127
1545
|
|
1128
1546
|
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1547
|
+
97
|
1548
|
+
98
|
1549
|
+
99</pre>
|
1132
1550
|
</td>
|
1133
1551
|
<td>
|
1134
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
1552
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 97</span>
|
1135
1553
|
|
1136
1554
|
<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>
|
1137
1555
|
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
@@ -1204,13 +1622,13 @@
|
|
1204
1622
|
<pre class="lines">
|
1205
1623
|
|
1206
1624
|
|
1207
|
-
65
|
1208
|
-
66
|
1209
1625
|
67
|
1210
|
-
68
|
1626
|
+
68
|
1627
|
+
69
|
1628
|
+
70</pre>
|
1211
1629
|
</td>
|
1212
1630
|
<td>
|
1213
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
1631
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 67</span>
|
1214
1632
|
|
1215
1633
|
<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>
|
1216
1634
|
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</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>
|
@@ -1286,12 +1704,12 @@
|
|
1286
1704
|
<pre class="lines">
|
1287
1705
|
|
1288
1706
|
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1707
|
+
78
|
1708
|
+
79
|
1709
|
+
80</pre>
|
1292
1710
|
</td>
|
1293
1711
|
<td>
|
1294
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line
|
1712
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/query.rb', line 78</span>
|
1295
1713
|
|
1296
1714
|
<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>
|
1297
1715
|
<span class='ivar'>@result</span> <span class='op'>?</span> <span class='ivar'>@target</span><span class='period'>.</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='op'>:</span> <span class='ivar'>@result</span>
|
@@ -1306,9 +1724,9 @@
|
|
1306
1724
|
</div>
|
1307
1725
|
|
1308
1726
|
<div id="footer">
|
1309
|
-
Generated on
|
1727
|
+
Generated on Sat Feb 2 17:47:19 2013 by
|
1310
1728
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1311
|
-
0.8.
|
1729
|
+
0.8.3 (ruby-1.9.3).
|
1312
1730
|
</div>
|
1313
1731
|
|
1314
1732
|
</body>
|