lib/kitchen/metadata_chopper.rb in test-kitchen-1.2.1 vs lib/kitchen/metadata_chopper.rb in test-kitchen-1.3.0
- old
+ new
@@ -40,13 +40,13 @@
# file. If you value your life, you may want to avoid reading the
# implementation.
#
# @param metadata_file [String] path to a metadata.rb file
def initialize(metadata_file)
- eval(IO.read(metadata_file), nil, metadata_file)
+ instance_eval(IO.read(metadata_file), metadata_file)
end
- def method_missing(meth, *args, &block)
+ def method_missing(meth, *args, &_block)
self[meth] = args.first
end
end
end