Class: Asetus::Adapter::TOML
- Inherits:
-
Object
- Object
- Asetus::Adapter::TOML
- Defined in:
- lib/asetus/adapter/toml.rb
Class Method Summary collapse
Class Method Details
.from(toml) ⇒ Object
19 20 21 22 |
# File 'lib/asetus/adapter/toml.rb', line 19 def from toml require 'toml' ::TOML.load toml end |
.to(hash) ⇒ Object
14 15 16 17 |
# File 'lib/asetus/adapter/toml.rb', line 14 def to hash require 'toml' ::TOML::Generator.new(hash).body end |