...and remove that crazy abomination
This commit is contained in:
parent
cfc38b30a1
commit
f030cdadb8
|
@ -14,9 +14,7 @@ module Zip
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_entry(entry, case_sensitively = true)
|
def find_entry(entry, case_sensitively = true)
|
||||||
return @entry_set[to_key(entry)] if case_sensitively
|
@entry_set[to_key(entry)]
|
||||||
entry = @entry_set.find { |k, _| k.downcase == to_key(entry).downcase }
|
|
||||||
entry.last if entry
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def <<(entry)
|
def <<(entry)
|
||||||
|
|
Loading…
Reference in New Issue