-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call #instance_exec on DSL object instead of proxy (#39)
when the DSL object is the same object as the block context object. This short-circuits prior to performing setup (like copying ivars from the block context to the proxy) that is unnecessary when the block context and DSL object "match". Add test that runs non-mutative code on frozen DSL object to check that no FrozenError is raised, as it would have been if a FallbackContextProxy tried to dynamically add methods to the DSL object.
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters