Sha256: a9f52b81ef94ce1bb7d6877938d46f049826827caa8d496056f282675e9d1dd1
Contents?: true
Size: 376 Bytes
Versions: 2
Compression:
Stored size: 376 Bytes
Contents
require 'oj' require_relative '../models/composition' module Vedeu class Parser def self.parse(output) new(output).parse end def initialize(output) @output = output || '' end def parse Composition.new(as_hash) end private attr_reader :output def as_hash Oj.load(output, symbol_keys: true) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.27 | lib/vedeu/support/parser.rb |
vedeu-0.0.26 | lib/vedeu/support/parser.rb |