diff options
author | Christoph Helma <helma@in-silico.de> | 2009-10-06 09:57:35 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-10-06 09:57:35 +0200 |
commit | e0456259d3ba9b2b1db92c55fec75ea23d331bcc (patch) | |
tree | f551bfa87d74afbc766e7bb3c0f25b080787c20b /smarts.rb | |
parent | 4fb516b327f559439c42fc930562524a2017aa85 (diff) |
Passes tests in opentox-test
Diffstat (limited to 'smarts.rb')
-rw-r--r-- | smarts.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/smarts.rb b/smarts.rb new file mode 100644 index 0000000..2ea54d2 --- /dev/null +++ b/smarts.rb @@ -0,0 +1,3 @@ +get '/match/compound/*/smarts/*/?' do + "#{OpenTox::Compound.new(:inchi => params[:splat][0]).match?(params[:splat][1])}" +end |