From fb3f95923b2ecdf3867888b0908c64ce12924d1d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 8 Jun 2014 20:04:16 -0500 Subject: Just access the ivar directly --- Library/Homebrew/extend/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3