Module: DurationExtensions
- Defined in:
- lib/duration_extensions.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
builds a duration object from a string like (but probably shorter than) dd:hh:mm:ss (or any other non-numeral delimiter will work).
Class Method Details
.included(base) ⇒ Object
builds a duration object from a string like (but probably shorter than) dd:hh:mm:ss (or any other non-numeral delimiter will work)
6 7 8 9 10 11 |
# File 'lib/duration_extensions.rb', line 6 def self.included(base) base.class_eval { extend ClassMethods include InstanceMethods } end |