class Pathname
Public Instance Methods
human_size()
click to toggle source
# File lib/sup/util.rb, line 36 def human_size s = begin size rescue SystemCallError return "?" end s.to_human_size end
human_time()
click to toggle source
# File lib/sup/util.rb, line 46 def human_time begin ctime.strftime("%Y-%m-%d %H:%M") rescue SystemCallError "?" end end