Module: Chem::Type::RDFType

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

Class Method Summary collapse

Class Method Details

.detect_file(file) ⇒ Object



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

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

.detect_type(type) ⇒ Object



15
16
17
# File 'lib/chem/db/types/type_rdf.rb', line 15

def self.detect_type type
  type == :rdf
end

.parse(file) ⇒ Object



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

def self.parse file
  require 'chem/db/mdl.rb'
end