Closed jimfoltz closed 10 years ago
SKUI.embed still remails, but evertthing else is scoped in the module it's embedded in. Just check the methods of the module to confirm.
Sent from my Sony Xperia™ smartphone
Jim Foltz notifications@github.com wrote:
Is this line supposed to remove the SKUI from the top-level scope? Is it working? I notice SKUI is still defined after after embedding.
https://github.com/thomthom/SKUI/blob/master/src/SKUI/embed_skui.rb#L33
On a whim, I wrapped the line in a start_time block and then SKUI was no longer available top-level. Maybe a constant can not be removed from within its own scope?
— Reply to this email directly or view it on GitHub.
I see.
SKUI.methods(false)
[embed_in]
It ensures that SKUI can be used side by side as a dependency.
Sent from my Sony Xperia™ smartphone
Jim Foltz notifications@github.com wrote:
I see.
SKUI.methods(false) [embed_in]
— Reply to this email directly or view it on GitHub.
Is this line supposed to remove the SKUI from the top-level scope? Is it working? I notice SKUI is still defined top-level after embedding.
https://github.com/thomthom/SKUI/blob/master/src/SKUI/embed_skui.rb#L33
On a whim, I wrapped the line in a
start_timer
block and then SKUI was no longer available top-level. Maybe a constant can not be removed from within its own scope?