Class: Browser::Platform::Base
- Inherits:
-
Object
- Object
- Browser::Platform::Base
- Defined in:
- lib/browser/platform/base.rb
Direct Known Subclasses
AdobeAir, Android, BlackBerry, ChromeOS, FirefoxOS, KaiOS, Linux, Unknown, Windows, WindowsMobile, WindowsPhone
Instance Attribute Summary collapse
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#ua ⇒ Object
readonly
Returns the value of attribute ua.
Instance Method Summary collapse
-
#initialize(ua, platform = nil) ⇒ Base
constructor
A new instance of Base.
- #match? ⇒ Boolean
Constructor Details
#initialize(ua, platform = nil) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/browser/platform/base.rb', line 8 def initialize(ua, platform = nil) @ua = ua @platform = platform end |
Instance Attribute Details
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
6 7 8 |
# File 'lib/browser/platform/base.rb', line 6 def platform @platform end |
#ua ⇒ Object (readonly)
Returns the value of attribute ua.
6 7 8 |
# File 'lib/browser/platform/base.rb', line 6 def ua @ua end |
Instance Method Details
#match? ⇒ Boolean
13 14 15 |
# File 'lib/browser/platform/base.rb', line 13 def match? false end |