diff options
| author | Jack Nagel | 2014-10-09 21:54:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-09 21:54:36 -0500 |
| commit | 7b550b9486b53f8987e18a2e27b7e8c137391a94 (patch) | |
| tree | 7b6cf76d81206b49738e8ce292273f37d843c1db /Library | |
| parent | 1355dc6b8c0f9fdeb31e5e729218f91225d1f4be (diff) | |
| download | brew-7b550b9486b53f8987e18a2e27b7e8c137391a94.tar.bz2 | |
Use alias_method instead of an extra ivar
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirement.rb | 4 |
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. |
