Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/stdlib.rb
Instance Method Summary collapse
Instance Method Details
#box ⇒ Object
13 14 15 |
# File 'lib/stdlib.rb', line 13 def box "" end |
#minute ⇒ Object
9 10 11 |
# File 'lib/stdlib.rb', line 9 def minute min end |
#path(x) ⇒ Object
17 18 19 20 |
# File 'lib/stdlib.rb', line 17 def path(x) # only first 5 elements are relevant (m,h,d,mon,y) to_a[..5].reverse.take([0, DEPTH[x] - 1].max).join("/") end |