From 68abcbd7550bf12c6adc65d9b367fabdc0497226 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 5 Sep 2022 13:51:33 -0500 Subject: [PATCH] Fix for ruby 3 seperation of hash and keyword args --- lib/dhall/ast.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dhall/ast.rb b/lib/dhall/ast.rb index 7c4a2fc..eb193f2 100644 --- a/lib/dhall/ast.rb +++ b/lib/dhall/ast.rb @@ -581,9 +581,9 @@ module Dhall Builtins[:Natural] end - def initialize(normalized: false, **attrs) - @normalized = normalized - super(**attrs) + def initialize(attrs) + @normalized = attrs.delete(:normalized) || false + super(attrs) end def type -- 2.38.5