Commit deaef74 1 parent 2fe6687 commit deaef74 Copy full SHA for deaef74
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -57,20 +57,19 @@ def empty?
57
57
end
58
58
59
59
def possible_types
60
- @possible_types ||= MIME ::Types . type_for ( @filename ) . collect ( &:content_type )
60
+ MIME ::Types . type_for ( @filename ) . collect ( &:content_type )
61
61
end
62
62
63
63
def official_types
64
- @offical_types ||= possible_types . reject { |content_type | content_type . match ( /\/ x-/ ) }
64
+ possible_types . reject { |content_type | content_type . match ( /\/ x-/ ) }
65
65
end
66
66
67
67
def types_matching_file
68
- @types_matching_file ||= possible_types . select { |content_type | content_type == type_from_file_command }
68
+ possible_types . select { |content_type | content_type == type_from_file_command }
69
69
end
70
70
71
71
def type_from_file_command
72
- @type_from_file_command ||= FileCommandContentTypeDetector . new ( @filename ) . detect
72
+ FileCommandContentTypeDetector . new ( @filename ) . detect
73
73
end
74
-
75
74
end
76
75
end
You can’t perform that action at this time.
0 commit comments