lib/jot/ruby/utils/snippets.rb in jot-ruby-0.1.3 vs lib/jot/ruby/utils/snippets.rb in jot-ruby-0.1.4

- old
+ new

@@ -1,16 +1,17 @@ module Jot module Ruby module Utils module Snippets def not_implemented(*method_names) - include Module.new do + not_implemented_module = Module.new do method_names.each do |method_name| define_method method_name do |*_args| raise NotImplementedError, method_name end end end + include not_implemented_module end def gem_root root = File.dirname(File.expand_path(caller_locations(1, 1)[0].path)) while root != '/'