summaryrefslogtreecommitdiff
path: root/smarts.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2009-10-06 09:57:35 +0200
committerChristoph Helma <helma@in-silico.de>2009-10-06 09:57:35 +0200
commite0456259d3ba9b2b1db92c55fec75ea23d331bcc (patch)
treef551bfa87d74afbc766e7bb3c0f25b080787c20b /smarts.rb
parent4fb516b327f559439c42fc930562524a2017aa85 (diff)
Passes tests in opentox-test
Diffstat (limited to 'smarts.rb')
-rw-r--r--smarts.rb3
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