Just access the ivar directly

This commit is contained in:
Jack Nagel 2014-06-08 20:04:16 -05:00
parent d27dc1d02f
commit fb3f95923b

View File

@ -428,7 +428,7 @@ class Pathname
# https://bugs.ruby-lang.org/issues/9915
prepend Module.new {
def inspect
super.force_encoding(instance_variable_get(:@path).encoding)
super.force_encoding(@path.encoding)
end
}
end