module TomlRB

def self.dump(hash)

Returns a TomlRB string representing the hash.


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

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

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

Examples


hash - Ruby Hash to be dumped into *TomlRB*

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