You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: helper.rb
    path of file: ./repos/rails-timeago/lib/rails-timeago
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'active_support/time'

module Rails
  module Timeago
    module Helper
      # Create a time tag usable for jQuery timeago plugin.
      #
      #   timeago_tag
    
      def timeago_tag(time, html_options = {})
        time_options = Rails::Timeago.default_options

        time_options = time_options.merge html_options.extract!(*time_options.keys.select do |k|
                                                                  html_options.include?(k)
                                                                end)
        return time_options[:default] if time.nil?

        time_options[:format] = time_options[:format].call(time, time_options) if time_options[:format].is_a?(Proc)
        if time_options[:title]
          html_options[:title] =
            time_options[:title].is_a?(Proc) ? time_options[:title].call(time, time_options) : time_options[:title]
        end
        time_options[:limit] = time_options[:limit].call if time_options[:limit].is_a?(Proc)

        time_range = unless time_options[:limit].nil?
                       now = Time.zone.now
                       limit = time_options[:limit]
                       limit < now ? limit...now : now...limit
                     end