lib/accept_headers/language.rb in accept_headers-0.0.6 vs lib/accept_headers/language.rb in accept_headers-0.0.7
- old
+ new
@@ -3,10 +3,10 @@
module AcceptHeaders
class Language
include Comparable
include Acceptable
- attr_reader :primary_tag, :subtag, :params
+ attr_reader :primary_tag, :subtag
LANGUAGE_TAG_PATTERN = /^\s*(?<primary_tag>[\w]{1,8}|\*)(?:\s*\-\s*(?<subtag>[\w]{1,8}|\*))?\s*$/
def initialize(primary_tag = '*', subtag = nil, q: 1.0)
self.primary_tag = primary_tag