Class: Qonfig::Uploaders::File Private
- Defined in:
- lib/qonfig/uploaders/file.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- FILE_OPENING_MODE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'w'
- EMPTY_SETTINGS_REPRESENTATION =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
''
- DEFAULT_OPTIONS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{}.freeze
Class Method Summary collapse
Class Method Details
.upload(settings, path:, options: self::DEFAULT_OPTIONS, &value_processor) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
33 34 35 36 37 38 |
# File 'lib/qonfig/uploaders/file.rb', line 33 def upload(settings, path:, options: self::DEFAULT_OPTIONS, &value_processor) ::File.open(path, FILE_OPENING_MODE) do |file_descriptor| settings_representation = represent_settings(settings, , &value_processor) file_descriptor.write(settings_representation) end end |