diff options
| author | Markus Reiter | 2017-06-27 11:55:23 +0200 | 
|---|---|---|
| committer | Markus Reiter | 2017-06-28 09:25:31 +0200 | 
| commit | 2703646b1008e8fc0a922e4677d9b2aadcea4b4d (patch) | |
| tree | b867eaa1d55679753a3c581bb077f39ffcb4570b /Library/Homebrew/cask/lib/hbc/utils.rb | |
| parent | 3b4ee58c491f164c2751c1c0f941568c35fb0ac6 (diff) | |
| download | brew-2703646b1008e8fc0a922e4677d9b2aadcea4b4d.tar.bz2 | |
Remove `utf8_inspect` method.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/utils.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/utils.rb | 9 | 
1 files changed, 0 insertions, 9 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index f23ce059c..22f826e74 100644 --- a/Library/Homebrew/cask/lib/hbc/utils.rb +++ b/Library/Homebrew/cask/lib/hbc/utils.rb @@ -4,15 +4,6 @@ require "stringio"  BUG_REPORTS_URL = "https://github.com/caskroom/homebrew-cask#reporting-bugs".freeze -# monkeypatch Object - not a great idea -class Object -  def utf8_inspect -    return inspect unless defined?(Encoding) -    return map(&:utf8_inspect) if respond_to?(:map) -    inspect.force_encoding("UTF-8").sub(/\A"(.*)"\Z/, '\1') -  end -end -  class Buffer < StringIO    extend Predicable  | 
