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

Do not modify BasicObject during template compilation on ruby 2.0+ #309

Merged
merged 1 commit into from
Feb 19, 2017

Conversation

jeremyevans
Copy link
Contributor

Starting in ruby 2.0, you can unbind methods from modules and
bind them to any object, and then call them. There is no reason
to modify the BasicObject class in this case.

This fixes tilt's template compilation on ruby 2.0+ when BasicObject
is frozen.

Starting in ruby 2.0, you can unbind methods from modules and
bind them to any object, and then call them.  There is no reason
to modify the BasicObject class in this case.

This fixes tilt's template compilation on ruby 2.0+ when BasicObject
is frozen.
@judofyr
Copy link
Collaborator

judofyr commented Feb 19, 2017

How come I never knew about this trick?

@judofyr judofyr merged commit 448b12e into rtomayko:master Feb 19, 2017
@PikachuEXE
Copy link

Will this be released soon?
I want to try refrigerator without excluding BasicObject
https://github.com/jeremyevans/ruby-refrigerator#freeze_core

@judofyr
Copy link
Collaborator

judofyr commented Mar 19, 2017

I just released Tilt 2.0.7 now

@PikachuEXE
Copy link

Thanks! <3

@jeremyevans jeremyevans deleted the topobject branch February 13, 2023 18:50
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 this pull request may close these issues.

None yet

3 participants