You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2024. It is now read-only.
Fudge::Tasks::Task#initialize copies and stores incoming arguments in the instance variable @args, and then extracts the options hash from the arguments and stores those in @options.
However, it extracts the options from the incoming arguments, not the copy in @args. Aside from the fact that #initialize alters its parameters—which is bad form—@args still retains the options hash, which is probably unintended.
This could affect a subclass that uses @args expecting—not unreasonably—that it doesn't include the options hash that was stored in @options.
Fudge::Tasks::Task#initialize
copies and stores incoming arguments in the instance variable@args
, and then extracts the options hash from the arguments and stores those in@options
.However, it extracts the options from the incoming arguments, not the copy in
@args
. Aside from the fact that#initialize
alters its parameters—which is bad form—@args
still retains the options hash, which is probably unintended.This could affect a subclass that uses
@args
expecting—not unreasonably—that it doesn't include the options hash that was stored in@options
.Example (admittedly a little contrived):
Running fudge with the above Fudgefile would result in
The text was updated successfully, but these errors were encountered: