~singpolyma/dhall-ruby

da136a3b8c392f3c9e963c55332c55faa6fdd01c — Stephen Paul Weber 3 years ago 5399cc1 0.5.1
Fix for Ruby 2.6+

Ruby 2.6 added a new method named `then` to `Object` which broke us using the
method_missing based DSL.  Switch to def_attr for then/else to fix this.
1 files changed, 2 insertions(+), 2 deletions(-)

M lib/dhall/ast.rb
M lib/dhall/ast.rb => lib/dhall/ast.rb +2 -2
@@ 1105,8 1105,8 @@ module Dhall
	class If < Expression
		include(ValueSemantics.for_attributes do
			predicate Expression
			self.then Expression
			self.else Expression
			def_attr :then, Expression
			def_attr :else, Expression
		end)

		def as_json