Class: Qonfig::Loaders::TOML Private

Inherits:
Basic
  • Object
show all
Defined in:
lib/qonfig/plugins/toml/loaders/toml.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.

Since:

  • 0.12.0

Class Method Summary collapse

Methods inherited from Basic

load_file

Class Method Details

.load(data) ⇒ Object

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.

Parameters:

  • data (String)

Returns:

  • (Object)

Since:

  • 0.12.0



12
13
14
# File 'lib/qonfig/plugins/toml/loaders/toml.rb', line 12

def load(data)
  ::TomlRB.parse(ERB.new(data).result)
end

.load_empty_dataObject

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.

Returns:

  • (Object)

Since:

  • 0.12.0



20
21
22
# File 'lib/qonfig/plugins/toml/loaders/toml.rb', line 20

def load_empty_data
  ::TomlRB.parse('')
end