Class: OpenTox::Smarts

Inherits:
NominalFeature show all
Defined in:
lib/feature.rb

Overview

Feature for SMARTS fragments

Class Method Summary collapse

Methods inherited from NominalFeature

#initialize

Constructor Details

This class inherits a constructor from OpenTox::NominalFeature

Class Method Details

.from_smarts(smarts) ⇒ Object



32
33
34
# File 'lib/feature.rb', line 32

def self.from_smarts smarts
  self.find_or_create_by :smarts => smarts
end