lib/quby/compiler/entities/questionnaire.rb in quby-compiler-0.3.1 vs lib/quby/compiler/entities/questionnaire.rb in quby-compiler-0.3.3

- old
+ new

@@ -281,11 +281,11 @@ else flag_key = "#{key}_#{flag_options[:key]}".to_sym end flag_options[:key] = flag_key fail(ArgumentError, "Flag '#{flag_key}' already defined") if flags.key?(flag_key) - flags[flag_key] = Flag.new(flag_options) + flags[flag_key] = Flag.new(**flag_options) end def filter_flags(given_flags) given_flags.select do |flag_key, _| flags.key? flag_key @@ -295,10 +295,10 @@ def add_textvar(textvar_options) textvar_key = "#{key}_#{textvar_options.fetch(:key)}".to_sym textvar_options[:key] = textvar_key validate_textvar_keys_unique(textvar_key) validate_depends_on_flag(textvar_key, textvar_options) - textvars[textvar_key] = Textvar.new(textvar_options) + textvars[textvar_key] = Textvar.new(**textvar_options) end def filter_textvars(given_textvars) given_textvars.select do |textvar_key, _| textvars.key? textvar_key