diff options
-rw-r--r-- | qa/qa/scenario/bootable.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qa/qa/scenario/bootable.rb b/qa/qa/scenario/bootable.rb index 7c54b642587..22496bcc2fc 100644 --- a/qa/qa/scenario/bootable.rb +++ b/qa/qa/scenario/bootable.rb @@ -30,14 +30,16 @@ module QA private - attr_reader :options - def attribute(name, arg, desc) - (@options ||= []).push(Option.new(name, arg, desc)) + options.push(Option.new(name, arg, desc)) + end + + def options + @options ||= [] end def has_attributes? - @options.to_a.any? + options.any? end end end |