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: common.rb
    path of file: ./repos/activity_notification/lib/activity_notification
    
    the code of the file until where you have to start completion: module ActivityNotification

  # Used to transform value from metadata to data.
  # Accepts Symbols, which it will send against context.
  # Acc
    
    def resolve_value(thing, *args)
      case thing
      when Symbol
        symbol_method = method(thing)
        if symbol_method.arity > 0
          if args.last.kind_of?(Hash)
            symbol_method.call(*args[0...-1], **args[-1])
          else
            symbol_method.call(*args)
          end