Make sure .metadata shows up in Cask backtrace.

This commit is contained in:
Markus Reiter 2018-02-13 17:23:49 +01:00
parent 8a30be7442
commit 191b621815

View File

@ -16,11 +16,11 @@ module Hbc
end
def initialize(content)
@content = content
@content = content.force_encoding("UTF-8")
end
def load
instance_eval(content.force_encoding("UTF-8"), __FILE__, __LINE__)
instance_eval(content, __FILE__, __LINE__)
end
private
@ -52,7 +52,7 @@ module Hbc
@content = IO.read(path)
super
instance_eval(content, path)
end
private