lib/takes_macro.rb in takes_macro-1.0.0 vs lib/takes_macro.rb in takes_macro-1.0.1

- old
+ new

@@ -18,13 +18,14 @@ args_code = [ positional_args, ] - if keyword_args.any? + if keyword_args.one? && !keyword_args.first.include?("!") + args_code << "options = {}" + elsif keyword_args.any? args_code << "options" end - args_code = args_code.flatten.compact.join(", ") bind_positional_args_code = positional_args.map do |arg| "@#{arg} = #{arg}" end.join("\n")