Class: Codgen::TemplateProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/codgen/template_provider.rb

Instance Method Summary collapse

Instance Method Details

#extensionObject



17
18
19
# File 'lib/codgen/template_provider.rb', line 17

def extension
  throw 'Not Implemented'
end

#nameObject



13
14
15
# File 'lib/codgen/template_provider.rb', line 13

def name
  throw 'Not Implemented'
end

#render(template, data) ⇒ String

Returns : The filled template.

Parameters:

  • template: (String)

    The template to be filled

  • data: (Hash)

    A hash of data model

Returns:

  • (String)

    : The filled template



9
10
11
# File 'lib/codgen/template_provider.rb', line 9

def render(template, data)
  throw 'Not Implemented'
end