Class: Vedeu::View

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, output) ⇒ View

Returns a new instance of View.



14
15
16
# File 'lib/vedeu/parsing/view.rb', line 14

def initialize(type, output)
  @type, @output = type, output
end

Class Method Details

.render(type, output) ⇒ Object



10
11
12
# File 'lib/vedeu/parsing/view.rb', line 10

def self.render(type, output)
  new(type, output).render
end

Instance Method Details

#renderObject



18
19
20
# File 'lib/vedeu/parsing/view.rb', line 18

def render
  Composition.enqueue(parsed_output)
end