diff options
author | hut <hut@lavabit.com> | 2009-06-11 21:32:40 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-06-11 21:32:40 +0200 |
commit | 41fddc99de7878ff7d90fafcb120003d0dc2c0d9 (patch) | |
tree | eb9cde32d67bea7418a73316f0ee1d06fe0de645 /code/extensions | |
parent | cea26b6d270526ffc241d8a38b1f27188a8868c3 (diff) | |
download | ranger-41fddc99de7878ff7d90fafcb120003d0dc2c0d9.tar.gz |
mooo
Diffstat (limited to 'code/extensions')
-rw-r--r-- | code/extensions/basic.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/code/extensions/basic.rb b/code/extensions/basic.rb index c822e9f6..520dac42 100644 --- a/code/extensions/basic.rb +++ b/code/extensions/basic.rb @@ -72,7 +72,7 @@ class Numeric self < min ? min : (self > max ? max : self) end - def bytes space = true, n_round = 2 + def bytes(space = true, n_round = 2) n = 1024 a = %w(B K M G T Y) @@ -135,9 +135,9 @@ class File end s = ("%o" % File.stat(f).mode)[-3..-1] - for m in s.each_char - result << MODES_HASH[m] - end +# s.each_char do |m| +# result << MODES_HASH[m] +# end result end |