docile/lib
Matt Schreiber 19c62d0d70
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.
2021-01-13 10:57:05 -05:00
..
docile Call #instance_exec on DSL object instead of proxy (#39) 2021-01-13 10:57:05 -05:00
docile.rb Add ruby2_keywords to delegating methods (#62) 2021-01-11 17:03:24 -05:00