File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -38,26 +38,14 @@ def <=> other
38
38
other . quality_factor <=> self . quality_factor
39
39
end
40
40
41
- def parameters_string
41
+ private def parameters_string
42
42
return "" if parameters == nil or parameters . empty?
43
43
44
44
parameters . collect do |key , value |
45
45
";#{ key . to_s } =#{ QuotedString . quote ( value . to_s ) } "
46
46
end . join
47
47
end
48
48
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
-
61
49
def to_s
62
50
"#{ type } /#{ subtype } #{ parameters_string } "
63
51
end
@@ -67,10 +55,6 @@ def to_s
67
55
def quality_factor
68
56
parameters . fetch ( "q" , 1.0 ) . to_f
69
57
end
70
-
71
- def split ( *args )
72
- return [ type , subtype ]
73
- end
74
58
end
75
59
76
60
# Parse the `accept` header value into a list of content types.
You can’t perform that action at this time.
0 commit comments