method

read_duration

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Extensions
read_duration(unpacker) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/message_pack/extensions.rb, line 199
      def read_duration(unpacker)
        value = unpacker.read
        parts = ActiveSupport::Duration::PARTS.zip(unpacker.read).to_h
        parts.compact!
        ActiveSupport::Duration.new(value, parts)
      end
Register or log in to add new notes.