Sha256: f883c72b428482035d0aa4fda4d3cbc9fce669d461f969875209860a0e1e2bdb

Contents?: true

Size: 605 Bytes

Versions: 20

Compression:

Stored size: 605 Bytes

Contents

# 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<Symbol,Any>]
    # @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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
qonfig-0.28.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.27.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.26.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.25.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.24.1 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.24.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.23.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.22.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.21.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.20.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.19.1 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.19.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.18.1 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.18.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.17.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.16.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.15.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.14.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.13.0 lib/qonfig/plugins/toml/uploaders/toml.rb
qonfig-0.12.0 lib/qonfig/plugins/toml/uploaders/toml.rb