Skip to content

Commit

Permalink
Prefer slightly less evil instance_eval over eval (style).
Browse files Browse the repository at this point in the history
  • Loading branch information
fnichol committed Aug 5, 2014
1 parent 6008a57 commit 8a03597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/emeril/metadata_chopper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MetadataChopper < Hash
# @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)
%w{name version}.map(&:to_sym).each do |attr|
next unless self[attr].nil?

Expand Down

0 comments on commit 8a03597

Please sign in to comment.