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

Not-obvious ruby scoping #99

Open
schneems opened this issue Dec 16, 2024 · 0 comments
Open

Not-obvious ruby scoping #99

schneems opened this issue Dec 16, 2024 · 0 comments

Comments

@schneems
Copy link
Member

There are several places where ruby code can be run/evaluated:

  • Rundoc configure
  • ERB
  • Website navigation

ERB supports the ability to have different bindings, and I believe website navigate creates different sessions. It's possible to script everything use pre.erb but that's a little clunky.

We could change the binding so that rundoc configure and the default ERB binding is shared. However for navigation to support different navigations, I don't think we can support having multiple bindings. Either way, it's emergent and not entirely intuitive what iteracts and plays well with what and what doesn't.

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

1 participant