Module: Chem::Type::MdlRxnType

Defined in:
lib/chem/db/types/type_rxn.rb

Class Method Summary collapse

Class Method Details

.detect_file(file) ⇒ Object


7
8
9
# File 'lib/chem/db/types/type_rxn.rb', line 7

def self.detect_file file
  File.extname(file) == '.rxn'
end

.detect_type(type) ⇒ Object


16
17
18
# File 'lib/chem/db/types/type_rxn.rb', line 16

def self.detect_type type
  type == :rxn
end

.parse(file) ⇒ Object


11
12
13
14
# File 'lib/chem/db/types/type_rxn.rb', line 11

def self.parse file
  mol = MdlReaction.new
  mol.open_rxn file
end