Class: Browser::Platform::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#platformObject (readonly)

Returns the value of attribute platform.



6
7
8
# File 'lib/browser/platform/base.rb', line 6

def platform
  @platform
end

#uaObject (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

Returns:

  • (Boolean)


13
14
15
# File 'lib/browser/platform/base.rb', line 13

def match?
  false
end