Skip to content
Snippets Groups Projects
Commit 7b550b94 authored by Jack Nagel's avatar Jack Nagel
Browse files

Use alias_method instead of an extra ivar

parent 1355dc6b
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment