From 7b550b9486b53f8987e18a2e27b7e8c137391a94 Mon Sep 17 00:00:00 2001 From: Jack Nagel <jacknagel@gmail.com> Date: Thu, 9 Oct 2014 21:54:36 -0500 Subject: [PATCH] Use alias_method instead of an extra ivar --- Library/Homebrew/requirement.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb index b342859316..f665bcc2cc 100644 --- a/Library/Homebrew/requirement.rb +++ b/Library/Homebrew/requirement.rb @@ -11,13 +11,13 @@ require 'build_environment' class Requirement include Dependable - attr_reader :tags, :name, :option_name + attr_reader :tags, :name + alias_method :option_name, :name def initialize(tags=[]) @tags = tags @tags << :build if self.class.build @name ||= infer_name - @option_name = @name end # The message to show when the requirement is not met. -- GitLab