Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/stdlib.rb

Instance Method Summary collapse

Instance Method Details

#boxObject



13
14
15
# File 'lib/stdlib.rb', line 13

def box
  ""
end

#minuteObject



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