summaryrefslogtreecommitdiff
path: root/lib/compound.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-12-03 14:37:09 +0100
committerChristoph Helma <helma@in-silico.ch>2010-12-03 14:37:09 +0100
commit64e5d2890f42cef112fbe768f6bfd54b746686de (patch)
treed110ab47aa6df694be297cfded9f07ad101e1e79 /lib/compound.rb
parent351694975c611999856c722d8cc3ae971811bc7b (diff)
underscore method added to String class
Diffstat (limited to 'lib/compound.rb')
-rw-r--r--lib/compound.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/compound.rb b/lib/compound.rb
index 6834860..a85507b 100644
--- a/lib/compound.rb
+++ b/lib/compound.rb
@@ -68,6 +68,12 @@ module OpenTox
c
end
+ # Get InChI
+ # @return [String] InChI string
+ def to_inchi
+ @inchi
+ end
+
# Get (canonical) smiles
# @return [String] Smiles string
def to_smiles