Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/mcutter/core_ext/misc.rb
Instance Method Summary collapse
Instance Method Details
#to_sec ⇒ Object
22 23 24 25 |
# File 'lib/mcutter/core_ext/misc.rb', line 22 def to_sec h, m, s = self.split(':', 3).map {|e| e.to_f} h*3600 + m*60 + s end |