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

Make style accessible to other applications #19

Closed
alexhairyman opened this issue May 6, 2014 · 1 comment
Closed

Make style accessible to other applications #19

alexhairyman opened this issue May 6, 2014 · 1 comment

Comments

@alexhairyman
Copy link

Would it be okay if an @Property was created so that we could get at the Scalar/Collection style of a node, to verify that a user has used double quotes, single quotes etc. I would gladly make a pull request if you'd merge it.

@kiith-sa
Copy link
Collaborator

I added a new module dyaml.hacks that is not imported by the yaml module (must be imported manually) for operations not considered 'standard' by the YAML standard; for now there's accessing/modifying scalar/collection styles.

These are not Node methods, and have intentionally ugly names to make it obvious they're not standard but they can be used with UFCS if dyaml.hacks is imported.

Sorry for the delay, got flooded by irrelevant messages so I didn't notice.

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

No branches or pull requests

2 participants