Skip to content

Instantly share code, notes, and snippets.

@ariejan
Last active August 29, 2015 14:14
Show Gist options
  • Save ariejan/809659c42fdbda2e8eac to your computer and use it in GitHub Desktop.
Save ariejan/809659c42fdbda2e8eac to your computer and use it in GitHub Desktop.
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