method

parts

Importance_1
v8.0.0 - Show latest stable - 0 notes - Class: ActiveSupport::Duration
parts() public

Returns a copy of the parts hash that defines the duration.

5.minutes.parts # => {:minutes=>5}
3.years.parts # => {:years=>3}
Show source
Register or log in to add new notes.