diff --git a/lib/ridl/delegate.rb b/lib/ridl/delegate.rb index d137d41..4b73f09 100644 --- a/lib/ridl/delegate.rb +++ b/lib/ridl/delegate.rb @@ -258,7 +258,7 @@ def pragma_id(id, repo_id) end def handle_pragma(pragma_string) - unless @@pragma_handlers.values.any? {|h| h.call(self, @cur, pragma_string)} + unless @@pragma_handlers.values.reduce(false) {|rc, h| h.call(self, @cur, pragma_string) || rc } IDL.log(1, "RIDL - unrecognized pragma encountered: #{pragma_string}.") end end