Class: Vedeu::Parser

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output = {}) ⇒ Parser

Returns a new instance of Parser.



16
17
18
# File 'lib/vedeu/parsing/parser.rb', line 16

def initialize(output = {})
  @output = output
end

Class Method Details

.parse(output = {}) ⇒ Object



10
11
12
13
14
# File 'lib/vedeu/parsing/parser.rb', line 10

def self.parse(output = {})
  return nil if output.nil? || output.empty?

  new(output).parse
end

Instance Method Details

#parseObject



20
21
22
# File 'lib/vedeu/parsing/parser.rb', line 20

def parse
  Compositor.enqueue(parsed_output)
end