-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Why instance_eval? #24
Conversation
1 similar comment
I found it to be more flexible and intuitive as you can do the following with your example: def doit
...
spinners.register("[:spinner] :title") do
update(title: "#{config.value}")
...
end |
Ahh, the docs show the spinner being passed in as the first argument to the block, so thats how we structured our code. That gave us access to do LMK if you want me to continue this - I can look into the failing tests but I'm not sure why they are failing off the top of my head. |
I've added Please have a look into the multi examples. If you prefer to have more control over your multi spinner you don't have to register jobs but only the spinner format. You can later control each spinner manually. I will add some docs shortly. Unfortunately, I'm on tight schedule and have to release new version today. |
@tyler-ball I've added more docs that explain how to have full control over multi spinner registered spinners. |
Thanks @piotrmurach ! |
@tyler-ball multi spinner stuff has been released as |
I needed to do something like this with the multi-spinner:
I wasn't sure why the job block was being
instance_eval
ed. Is there a specific reason instead of just calling it?