aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-06-08 20:04:16 -0500
committerJack Nagel2014-06-08 20:04:16 -0500
commitfb3f95923b2ecdf3867888b0908c64ce12924d1d (patch)
treefd5d5c88563860811c14f45a184067f51fcc8c02
parentd27dc1d02f0195855e5bd9f1c8ba61bb37c483d3 (diff)
downloadbrew-fb3f95923b2ecdf3867888b0908c64ce12924d1d.tar.bz2
Just access the ivar directly
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 01746f770..018877e84 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -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