Just access the ivar directly
This commit is contained in:
parent
d27dc1d02f
commit
fb3f95923b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user