Skip to content
Snippets Groups Projects
Commit fb3f9592 authored by Jack Nagel's avatar Jack Nagel
Browse files

Just access the ivar directly

parent d27dc1d0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment