Class: Shale::Adapter::Tomlib
- Inherits:
-
Object
- Object
- Shale::Adapter::Tomlib
- Defined in:
- lib/shale/adapter/tomlib.rb
Overview
Tomlib adapter
Class Method Summary collapse
-
.dump(obj, **options) ⇒ String
private
Serialize Hash into TOML.
-
.load(toml, **_options) ⇒ Hash
private
Parse TOML into Hash.
Class Method Details
.dump(obj, **options) ⇒ String
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.
Serialize Hash into TOML
31 32 33 |
# File 'lib/shale/adapter/tomlib.rb', line 31 def self.dump(obj, **) ::Tomlib.dump(obj, **) end |
.load(toml, **_options) ⇒ Hash
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.
Parse TOML into Hash
19 20 21 |
# File 'lib/shale/adapter/tomlib.rb', line 19 def self.load(toml, **) ::Tomlib.load(toml) end |