Class: ODDB::Export::Yaml::Drugs

Inherits:
Object
  • Object
show all
Defined in:
lib/oddb/export/yaml.rb

Instance Method Summary collapse

Instance Method Details

#export(io) ⇒ Object



147
148
149
150
# File 'lib/oddb/export/yaml.rb', line 147

def export(io)
  ODDB::Drugs::Product.all { |product| io.puts product.to_yaml }
  nil
end