Last active
August 29, 2015 14:14
-
-
Save ariejan/809659c42fdbda2e8eac to your computer and use it in GitHub Desktop.
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
module DSL | |
module SomeFeature | |
def set_us_up_the_bomb | |
raise "Not implemented." | |
end | |
end | |
end | |
module DSL | |
class Core | |
include DSL::SomeFeature | |
end | |
end | |
dsl = DSL::Core.new | |
dsl.instance_eval do | |
# Does _not_ raise the exception | |
set_us_up_the_bomb | |
end | |
# => nil | |
# Simply returns `nil`, no exception | |
dsl.set_us_up_the_bomb | |
# => nil | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment