Class: Hookworm::DirectoryIndexUpdater::TemplateContext
- Inherits:
-
Object
- Object
- Hookworm::DirectoryIndexUpdater::TemplateContext
- Defined in:
- lib/hookworm/directory_index_updater.rb
Instance Method Summary collapse
-
#initialize(version, uri_path, entries) ⇒ TemplateContext
constructor
A new instance of TemplateContext.
- #render(template) ⇒ Object
Constructor Details
#initialize(version, uri_path, entries) ⇒ TemplateContext
Returns a new instance of TemplateContext.
40 41 42 43 44 |
# File 'lib/hookworm/directory_index_updater.rb', line 40 def initialize(version, uri_path, entries) @version = version @uri_path = uri_path @entries = entries end |
Instance Method Details
#render(template) ⇒ Object
46 47 48 49 |
# File 'lib/hookworm/directory_index_updater.rb', line 46 def render(template) @build_time = Time.now.utc template.result(binding) end |