Module: Yummi::DataParser
- Defined in:
- lib/yummi/data_parser.rb
Class Method Summary collapse
Class Method Details
.csv(input) ⇒ Object
31 32 33 34 |
# File 'lib/yummi/data_parser.rb', line 31 def self.csv(input) require 'csv' #autoload will be dead, using require instead CSV::parse(input, :converters => :all) end |
.yaml(input) ⇒ Object
27 28 29 |
# File 'lib/yummi/data_parser.rb', line 27 def self.yaml(input) YAML::load(input) end |