Class: Changi::Renderer
- Inherits:
-
Object
- Object
- Changi::Renderer
- Defined in:
- lib/changi/renderer.rb
Instance Attribute Summary collapse
-
#entry_set ⇒ Object
readonly
Returns the value of attribute entry_set.
-
#release ⇒ Object
readonly
Returns the value of attribute release.
Instance Method Summary collapse
-
#initialize(config, entry_set, release) ⇒ Renderer
constructor
A new instance of Renderer.
- #render ⇒ Object
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_set ⇒ Object (readonly)
Returns the value of attribute entry_set.
5 6 7 |
# File 'lib/changi/renderer.rb', line 5 def entry_set @entry_set end |
#release ⇒ Object (readonly)
Returns the value of attribute release.
6 7 8 |
# File 'lib/changi/renderer.rb', line 6 def release @release end |
Instance Method Details
#render ⇒ Object
14 15 16 |
# File 'lib/changi/renderer.rb', line 14 def render ERB.new(@config.changelog_template).result binding end |