Giter Site home page Giter Site logo

Comments (7)

westlakem avatar westlakem commented on July 28, 2024 5

@tenderlove that is not appropriate documentation for "options" as it only shows the indentation... What other options are there?

from psych.

andymeneely avatar andymeneely commented on July 28, 2024 3

Where are the options documented? They don't have to be on ruby-doc.org, but I'd like to know where they are.

from psych.

dankohn avatar dankohn commented on July 28, 2024 3

See: https://stackoverflow.com/a/9759344/1935918

.to_yaml(line_width: 80) was particularly helpful for me.

from psych.

tenderlove avatar tenderlove commented on July 28, 2024

options is kind of overloaded, as it's also used when building the tree. If you send a documentation pull request, I'll be happy to apply it.

Unfortunately I have no control over the documentation posted on ruby-doc.org. :(

from psych.

zzak avatar zzak commented on July 28, 2024

@tenderlove Should these be documented on psych/emitter.c?

from psych.

tenderlove avatar tenderlove commented on July 28, 2024

Well, emitter.c doesn't actually take hash parameters as options. You have to give it a configuration object.

If you do an ri Psych.dump the options do show up:

ri info

All of the options on Psych::Emitter should be documented as well. I'm closing this ticket since I have no control over the documentation available on ruby-doc.org, but any documentation patches would be gladly accepted!

from psych.

westlakem avatar westlakem commented on July 28, 2024

I'm really just looking for a way to output it with filled in variables (verbose if you will). I have a lot of reused information in my auto-generated yaml file, and seeing *1, *2, *3 means I have to dig through the rest of the file to know what i'm looking at.

from psych.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.