From a897ddb1bfdbb5cb562f6a85d0d55571d071e463 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 6 Feb 2024 13:25:10 -0500 Subject: [PATCH] RecordSelector has a record method as well --- lib/dhall/ast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dhall/ast.rb b/lib/dhall/ast.rb index eb193f2..4996f18 100644 --- a/lib/dhall/ast.rb +++ b/lib/dhall/ast.rb @@ -820,7 +820,7 @@ module Dhall end def ==(other) - other.respond_to?(:record) && record.to_a == other.record.to_a + other.is_a?(Record) && record.to_a == other.record.to_a end def eql?(other) -- 2.45.2