# frozen_string_literal: true # @api private # @since 0.12.0 class Qonfig::Uploaders::TOML < Qonfig::Uploaders::File class << self # @param settings [Qonfig::Settings] # @param options [Hash] # @param value_processor [Block] # @return [String] # # @api private # @since 0.12.0 def represent_settings(settings, options, &value_processor) settings_hash = if block_given? settings.__to_hash__(transform_value: value_processor) else settings.__to_hash__ end ::TomlRB.dump(settings_hash) end end end