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
|
# https://bugs.ruby-lang.org/issues/9915
|
||||||
prepend Module.new {
|
prepend Module.new {
|
||||||
def inspect
|
def inspect
|
||||||
super.force_encoding(instance_variable_get(:@path).encoding)
|
super.force_encoding(@path.encoding)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user