Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Preserve hash strructure when generating a TOML file #69

Open
pinecat opened this issue Feb 13, 2022 · 0 comments · May be fixed by #70
Open

Feature: Preserve hash strructure when generating a TOML file #69

pinecat opened this issue Feb 13, 2022 · 0 comments · May be fixed by #70

Comments

@pinecat
Copy link

pinecat commented Feb 13, 2022

For a given hash, preserve it's structure when generating a TOML file via TOML::Generator.

Such that:

doc = {
  "z" => 1,
  "y" => 2,
  "x" => 3
}

becomes:

z = 1
y = 2
x = 3

Current behavior is to sort the hash's keys before generating the TOML.

@pinecat pinecat linked a pull request Feb 13, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant