aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/caveats.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/caveats.rb')
-rw-r--r--Library/Homebrew/caveats.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb
index ee09063fd..2d0ceeb48 100644
--- a/Library/Homebrew/caveats.rb
+++ b/Library/Homebrew/caveats.rb
@@ -1,4 +1,6 @@
class Caveats
+ extend Forwardable
+
attr_reader :f
def initialize(f)
@@ -25,9 +27,7 @@ class Caveats
caveats.compact.join("\n")
end
- def empty?
- caveats.empty?
- end
+ delegate [:empty?, :to_s] => :caveats
private