lib/bolt/util/format.rb
# Stringifies an object, formatted as valid JSON.
#
# @param message [Object] The object to stringify.
# @return [String] The JSON string.
#
Stringifies an object, formatted as valid JSON.
Stringifies an object formatted as valid JSON .
def stringify(message)
          formatted = format_message(message)
          if formatted.is_a?(Hash) || formatted.is_a?(Array)
            ::JSON.pretty_generate(formatted)
          else
            formatted
          end
        end
def stringify ( message ) formatted = format_message ( message ) if formatted . is_a? ( Hash ) || formatted . is_a? ( Array ) :: JSON . pretty_generate ( formatted ) else formatted end end
Stringifies an object, formatted as valid JSON.
Stringifies an object formatted as valid JSON .
The JSON string.
The JSON string .
String
message
The object to stringify.
The object to stringify .