diff options
author | hut <hut@lavabit.com> | 2009-06-13 04:12:18 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-06-13 04:12:18 +0200 |
commit | bd627dc4f2d009642de3ada13cbdc547490baf68 (patch) | |
tree | 116e882dd0d303cd8999e1a83c47965ba4a9458b /code/entry.rb | |
parent | f55eb9bf0d7d2c252a6591324bfd8392d30c53da (diff) | |
download | ranger-bd627dc4f2d009642de3ada13cbdc547490baf68.tar.gz |
fixing & cleaning up
Diffstat (limited to 'code/entry.rb')
-rw-r--r-- | code/entry.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/code/entry.rb b/code/entry.rb index bc0d2d7b..7a17bb65 100644 --- a/code/entry.rb +++ b/code/entry.rb @@ -27,7 +27,6 @@ class Directory::Entry @basename = File.basename(dirname) end @name, @ext = @basename.split_at_last_dot -# @ext = @basename.from_last('.') || '' @movie = MOVIE_EXTENSIONS.include?(@ext) @size = 0 @exists = false @@ -65,7 +64,7 @@ class Directory::Entry def handler() ## get_handler has to be defined in another file - @handler = catch(:use) do + @handler ||= catch(:use) do get_handler end end |