Class: Mayaml::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/mayaml/parser.rb

Class Method Summary collapse

Class Method Details

.get_accounts(json_file) ⇒ Object



23
24
25
26
27
# File 'lib/mayaml/parser.rb', line 23

def self.get_accounts(json_file)
  YAML.load_file json_file
rescue Errno::ENOENT, Psych::SyntaxError
  []
end