Sha256: ce5f45b5c7f120aa745fdeeb1fbf283931923fcc0df553a7b857763efa63b594
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
module Vedeu module Buffer class Parser def initialize(composition) @composition = composition end def to_compositor composition.interface.inject({}) do |acc, interface| acc[interface.name] = interface.to_compositor acc end end def to_hash Oj.load(to_json) end def to_json Oj.dump(composition, mode: :compat, circular: true) end private attr_reader :composition end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.23 | lib/vedeu/output/buffer/parser.rb |