Class: Integer

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

Overview

Overload the integer class

Instance Method Summary collapse

Instance Method Details

#human_duration(type = 'compact') ⇒ Object



7
8
9
10
# File 'lib/human_duration/overloads.rb', line 7

def human_duration(type = 'compact')
    HumanDuration::Duration.display_type(type)
    HumanDuration::Duration.human_duration(self)
end