Sha256: ed09114c380ba2fa5cd0f7e1783d4aef715eb5f53fcf22e41f11adf2992bcd0f

Contents?: true

Size: 116 Bytes

Versions: 12

Compression:

Stored size: 116 Bytes

Contents

class Browser
  module Tv
    # Detect if browser is Television
    def tv?
      !!(ua =~ /tv/i)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
browser-1.0.1 lib/browser/methods/tv.rb
browser-1.0.0 lib/browser/methods/tv.rb
browser-0.9.1 lib/browser/methods/tv.rb
browser-0.9.0 lib/browser/methods/tv.rb
browser-0.8.0 lib/browser/methods/tv.rb
browser-0.7.2 lib/browser/methods/tv.rb
browser-0.7.1 lib/browser/methods/tv.rb
browser-0.7.0 lib/browser/methods/tv.rb
browser-0.6.0 lib/browser/methods/tv.rb
browser-0.5.0 lib/browser/methods/tv.rb
browser-0.4.1 lib/browser/methods/tv.rb
browser-0.4.0 lib/browser/methods/tv.rb