Sha256: 839ab56ed50ba204149e795b95436158e9de36f25f33c9ec0768d88468d14806
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
class Asetus def to_toml config Adapter::TOML.to config._asetus_to_hash end def from_toml toml Adapter::TOML.from toml end class Adapter class TOML class << self def to hash require 'toml' ::TOML::Generator.new(hash).body end def from toml require 'toml' ::TOML.load toml end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asetus-0.3.0 | lib/asetus/adapter/toml.rb |
asetus-0.2.0 | lib/asetus/adapter/toml.rb |