module TOML

def self.dump(hash)

Returns a TOML string representing the hash.


# => "title = \"wow!\"\n[awesome]\nothers = false\nyou = true\n"
TOML.dump(hash)

}
}
"others"=>false
"you"=>true,
"awesome"=> {
"title"=>"wow!",
hash = {

# => "simple = true\n"
TOML.dump(title: 'TOML dump')

Examples


hash - Ruby Hash to be dumped into *TOML*

Public: Returns a *TOML* string from a Ruby Hash.
def self.dump(hash)
  Dumper.new(hash).toml_str
end