We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the DRC rules rely on conditional to set the default value from global variables.
It would be nice to consolidate those in configuration hashes at the top of the DRC script, we can them rely on the https://docs.ruby-lang.org/en/3.2/Hash.html#method-i-merge function to apply the default.
irb(main):036:0> $a = false => false irb(main):037:0> default = {:a => true, :b => false} => {:a=>true, :b=>false} irb(main):038:0> config = default.merge({:a => $a}) => {:a=>false, :b=>false} irb(main):039:0> config[:a] => false irb(main):042:0> config[:b] => false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently the DRC rules rely on conditional to set the default value from global variables.
It would be nice to consolidate those in configuration hashes at the top of the DRC script, we can them rely on the https://docs.ruby-lang.org/en/3.2/Hash.html#method-i-merge function to apply the default.
The text was updated successfully, but these errors were encountered: