Module: RDee::AdditionalOptions
- Included in:
- BrowserFactory
- Defined in:
- lib/rdee/additional_options.rb
Instance Method Summary collapse
- #additional_options_for(target) ⇒ Object
- #need_android_options?(target) ⇒ Boolean
- #need_chrome_options?(target) ⇒ Boolean
- #need_firefox_options?(target) ⇒ Boolean
- #need_ie_options?(target) ⇒ Boolean
- #need_ios_options?(target) ⇒ Boolean
- #need_safari_options?(target) ⇒ Boolean
Instance Method Details
#additional_options_for(target) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/rdee/additional_options.rb', line 4 def (target) = {} .merge!() if target .merge!() if target .merge!() if target .merge!() if target .merge!() if target .merge!() if target end |
#need_android_options?(target) ⇒ Boolean
35 36 37 |
# File 'lib/rdee/additional_options.rb', line 35 def (target) not .nil? and target.to_s.include? 'android' end |
#need_chrome_options?(target) ⇒ Boolean
15 16 17 |
# File 'lib/rdee/additional_options.rb', line 15 def (target) not .nil? and target.to_s.include? 'chrome' end |
#need_firefox_options?(target) ⇒ Boolean
19 20 21 |
# File 'lib/rdee/additional_options.rb', line 19 def (target) not .nil? and target.to_s.include? 'firefox' end |
#need_ie_options?(target) ⇒ Boolean
23 24 25 |
# File 'lib/rdee/additional_options.rb', line 23 def (target) not .nil? and target.to_s.include? 'ie' end |
#need_ios_options?(target) ⇒ Boolean
31 32 33 |
# File 'lib/rdee/additional_options.rb', line 31 def (target) not .nil? and target.to_s.include? 'ios' end |
#need_safari_options?(target) ⇒ Boolean
27 28 29 |
# File 'lib/rdee/additional_options.rb', line 27 def (target) not .nil? and target.to_s.include? 'safari' end |