wizardofosmium / porolog

Plain Old Ruby Objects Prolog
4 stars 0 forks source link

Warning/error using ruby 2.7.1 #16

Closed ghost closed 4 years ago

ghost commented 4 years ago

The attached example from your documentation generates the following when using ruby 2.7.1:

ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19]

Both these messages occur at the following line in the attachment:

builtin :gtr, :is, :noteq, :between, class_base: self

Changing the signature of Porolog::Predicate.new from

def self.new(*args)

to

def self.new(*args, **)

fixes both these issues.

-- sw

example4.txt

wizardofosmium commented 4 years ago

Thanks @caponecicero . I'll update.