Make sure .metadata shows up in Cask backtrace.
This commit is contained in:
parent
8a30be7442
commit
191b621815
@ -16,11 +16,11 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def initialize(content)
|
def initialize(content)
|
||||||
@content = content
|
@content = content.force_encoding("UTF-8")
|
||||||
end
|
end
|
||||||
|
|
||||||
def load
|
def load
|
||||||
instance_eval(content.force_encoding("UTF-8"), __FILE__, __LINE__)
|
instance_eval(content, __FILE__, __LINE__)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
@ -52,7 +52,7 @@ module Hbc
|
|||||||
|
|
||||||
@content = IO.read(path)
|
@content = IO.read(path)
|
||||||
|
|
||||||
super
|
instance_eval(content, path)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user