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



5
6
7
8
# File 'lib/human_duration/overloads.rb', line 5

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