Class: DataImp::Parser::Yaml

Inherits:
Stream show all
Defined in:
lib/data_imp/parser/yaml.rb

Instance Attribute Summary

Attributes inherited from DataImp::Parser

#filename

Instance Method Summary collapse

Methods inherited from Stream

#process

Methods inherited from DataImp::Parser

find_parser, #initialize, #parse, #process, #process_file

Constructor Details

This class inherits a constructor from DataImp::Parser

Instance Method Details

#process_string(input) ⇒ Object



4
5
6
# File 'lib/data_imp/parser/yaml.rb', line 4

def process_string input
  YAML.safe_load(input)
end