Class: Browser::Meta::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/browser/meta/base.rb

Direct Known Subclasses

Device, GenericBrowser, Mobile, Platform, Proxy, Safari, Tablet, Webkit

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(browser) ⇒ Base

Returns a new instance of Base.



31
32
33
# File 'lib/browser/meta/base.rb', line 31

def initialize(browser)
  @browser = browser
end

Instance Attribute Details

#browserObject (readonly)

Set the browser instance.



29
30
31
# File 'lib/browser/meta/base.rb', line 29

def browser
  @browser
end

Instance Method Details

#metaObject



35
36
37
# File 'lib/browser/meta/base.rb', line 35

def meta
  nil
end

#to_aObject



39
40
41
# File 'lib/browser/meta/base.rb', line 39

def to_a
  meta.to_s.squeeze(" ").split
end