Class: Time
Instance Method Summary collapse
-
#truncate_to(tick_sec) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….……
Instance Method Details
#truncate_to(tick_sec) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….……
5 6 7 |
# File 'lib/zgomot/patches/time.rb', line 5 def truncate_to(tick_sec) tick_sec*(to_f/tick_sec).to_i end |