File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -38,26 +38,14 @@ def <=> other
3838 other . quality_factor <=> self . quality_factor
3939 end
4040
41- def parameters_string
41+ private def parameters_string
4242 return "" if parameters == nil or parameters . empty?
4343
4444 parameters . collect do |key , value |
4545 ";#{ key . to_s } =#{ QuotedString . quote ( value . to_s ) } "
4646 end . join
4747 end
4848
49- def === other
50- if other . is_a? self . class
51- super
52- else
53- return self . range_string === other
54- end
55- end
56-
57- def range_string
58- "#{ type } /#{ subtype } "
59- end
60-
6149 def to_s
6250 "#{ type } /#{ subtype } #{ parameters_string } "
6351 end
@@ -67,10 +55,6 @@ def to_s
6755 def quality_factor
6856 parameters . fetch ( "q" , 1.0 ) . to_f
6957 end
70-
71- def split ( *args )
72- return [ type , subtype ]
73- end
7458 end
7559
7660 # Parse the `accept` header value into a list of content types.
You can’t perform that action at this time.
0 commit comments