method
new
new(value, parts)
public
Hide source
# File activesupport/lib/active_support/duration.rb, line 213 def initialize(value, parts) #:nodoc: @value, @parts = value, parts @parts.reject! { |k, v| v.zero? } unless value == 0 end