diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-07-02 19:23:01 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-07-02 19:23:01 +0200 |
commit | 6c35e3f8369ba96cb251eac487424bd949fdcf6c (patch) | |
tree | efb13808cfd022793800460a729bf0b583284d21 /lib/compound.rb | |
parent | 308ed58dc56815317f89654a0cc4ab7fb70a9f31 (diff) |
Algorithms and Models are modules instead of classes.
Diffstat (limited to 'lib/compound.rb')
-rw-r--r-- | lib/compound.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compound.rb b/lib/compound.rb index daeabb9..9bd2066 100644 --- a/lib/compound.rb +++ b/lib/compound.rb @@ -6,6 +6,10 @@ module OpenTox # Ruby wrapper for OpenTox Compound Webservices (http://opentox.org/dev/apis/api-1.2/structure). class Compound + def ==(c) + @uri == c.uri + end + # Create a compound from smiles string # @example # compound = OpenTox::Compound.from_smiles("c1ccccc1") |