diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-04-14 19:43:24 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-04-14 19:43:24 +0200 |
commit | 753fcc204d93d86c76860bee6e2f7d0468c3c940 (patch) | |
tree | 30fc9980de8b298ee57199c9b540408019a8976c /lib/opentox.rb | |
parent | 64f1f32ced77afb278bdb7c27397c5299a73675c (diff) |
features/toxicities fixed
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |