aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-09 21:54:36 -0500
committerJack Nagel2014-10-09 21:54:36 -0500
commitc0460a4997ec6dc7acb3f9b846e2e4fee25d271b (patch)
tree96ed110c5a01db1939390b69a128decaca8d715c /Library
parent81ffd91a7d32d81107e2c7ebc9f15d1a00ce728a (diff)
downloadhomebrew-c0460a4997ec6dc7acb3f9b846e2e4fee25d271b.tar.bz2
Use alias_method instead of an extra ivar
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirement.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb
index b34285931..f665bcc2c 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.