From 753fcc204d93d86c76860bee6e2f7d0468c3c940 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 14 Apr 2016 19:43:24 +0200 Subject: features/toxicities fixed --- lib/opentox.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/opentox.rb') diff --git a/lib/opentox.rb b/lib/opentox.rb index cc18cc6..7d8a8a2 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -15,6 +15,11 @@ module OpenTox field :name, type: String field :source, type: String field :warnings, type: Array, default: [] + + def warn warning + $logger.warn warning + warnings << warning + end end OpenTox.const_set klass,c end -- cgit v1.2.3