Class: Browser::Meta::Base
- Inherits:
-
Object
- Object
- Browser::Meta::Base
- Defined in:
- lib/browser/meta/base.rb
Direct Known Subclasses
Device, GenericBrowser, Mobile, Modern, Platform, Proxy, Safari, Tablet, Webkit
Instance Attribute Summary collapse
-
#browser ⇒ Object
readonly
Set the browser instance.
Instance Method Summary collapse
-
#initialize(browser) ⇒ Base
constructor
A new instance of Base.
- #meta ⇒ Object
- #to_a ⇒ Object
Constructor Details
#initialize(browser) ⇒ Base
8 9 10 |
# File 'lib/browser/meta/base.rb', line 8 def initialize(browser) @browser = browser end |
Instance Attribute Details
#browser ⇒ Object (readonly)
Set the browser instance.
6 7 8 |
# File 'lib/browser/meta/base.rb', line 6 def browser @browser end |
Instance Method Details
#meta ⇒ Object
12 13 14 |
# File 'lib/browser/meta/base.rb', line 12 def nil end |
#to_a ⇒ Object
16 17 18 |
# File 'lib/browser/meta/base.rb', line 16 def to_a .to_s.squeeze(" ").split(" ") end |