Class: ExtractExifGps::HtmlRenderer
- Inherits:
-
Object
- Object
- ExtractExifGps::HtmlRenderer
- Defined in:
- lib/html_renderer.rb
Overview
Render a FileSet as an HTML file
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#search_paths ⇒ Object
readonly
Returns the value of attribute search_paths.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(files, template:, title: 'EXIF GPS', search_paths: []) ⇒ HtmlRenderer
constructor
A new instance of HtmlRenderer.
- #to_s ⇒ Object
Constructor Details
#initialize(files, template:, title: 'EXIF GPS', search_paths: []) ⇒ HtmlRenderer
Returns a new instance of HtmlRenderer.
15 16 17 18 19 20 |
# File 'lib/html_renderer.rb', line 15 def initialize(files, template:, title: 'EXIF GPS', search_paths: []) @files = files @template = template @title = title @search_paths = search_paths end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
8 9 10 |
# File 'lib/html_renderer.rb', line 8 def files @files end |
#search_paths ⇒ Object (readonly)
Returns the value of attribute search_paths.
8 9 10 |
# File 'lib/html_renderer.rb', line 8 def search_paths @search_paths end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
8 9 10 |
# File 'lib/html_renderer.rb', line 8 def title @title end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/html_renderer.rb', line 22 def to_s erb.result(binding) end |