Class: Pathname
Instance Method Summary collapse
Instance Method Details
#human_size ⇒ Object
61 62 63 64 65 66 67 68 69 |
# File 'lib/sup/util.rb', line 61 def human_size s = begin size rescue SystemCallError return "?" end s.to_human_size end |
#human_time ⇒ Object
71 72 73 74 75 76 77 |
# File 'lib/sup/util.rb', line 71 def human_time begin ctime.strftime("%Y-%m-%d %H:%M") rescue SystemCallError "?" end end |