lib/browser_sniffer.rb in browser_sniffer-1.0.1 vs lib/browser_sniffer.rb in browser_sniffer-1.0.4

- old
+ new

@@ -18,10 +18,14 @@ def ie8? browser == :ie && major_browser_version == 8 end + def ie11? + browser == :ie && major_browser_version == 11 + end + def handheld? form_factor == :handheld end def tablet? @@ -132,10 +136,10 @@ elsif field.class == Array if field[1].class == String || field[1].class == Symbol result[field[0]] = field[1] elsif field[1].class == Hash if field[1][match[index + 1]] - result[field[0]] = field[1][match[index + 1]] + result[field[0]] = field[1][match[index + 1]] else result[field[0]] = match[index + 1] end elsif field[1].class == Proc result[field[0]] = field[1].call(match[index + 1])