Class: Pathname
Instance Method Summary collapse
Instance Method Details
#human_size ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'lib/sup/util.rb', line 47 def human_size s = begin size rescue SystemCallError return "?" end s.to_human_size end |
#human_time ⇒ Object
57 58 59 60 61 62 63 |
# File 'lib/sup/util.rb', line 57 def human_time begin ctime.strftime("%Y-%m-%d %H:%M") rescue SystemCallError "?" end end |