Class: Changi::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/changi/renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, entry_set, release) ⇒ Renderer

Returns a new instance of Renderer.



8
9
10
11
12
# File 'lib/changi/renderer.rb', line 8

def initialize config, entry_set, release
  @config    = config
  @entry_set = entry_set
  @release   = release
end

Instance Attribute Details

#entry_setObject (readonly)

Returns the value of attribute entry_set.



5
6
7
# File 'lib/changi/renderer.rb', line 5

def entry_set
  @entry_set
end

#releaseObject (readonly)

Returns the value of attribute release.



6
7
8
# File 'lib/changi/renderer.rb', line 6

def release
  @release
end

Instance Method Details

#renderObject



14
15
16
# File 'lib/changi/renderer.rb', line 14

def render
  ERB.new(@config.changelog_template).result binding
end