Class: Unteilbar::Signatures
- Inherits:
-
Object
- Object
- Unteilbar::Signatures
- Defined in:
- lib/unteilbar.rb
Overview
signatures by wp-forms
Instance Method Summary collapse
-
#initialize(filename) ⇒ Signatures
constructor
A new instance of Signatures.
-
#to_html ⇒ Object
generates html-file - each signer as li-element.
Constructor Details
#initialize(filename) ⇒ Signatures
12 13 14 |
# File 'lib/unteilbar.rb', line 12 def initialize(filename) @reader = CsvReader.new(filename) end |
Instance Method Details
#to_html ⇒ Object
generates html-file - each signer as li-element
19 20 21 22 23 24 25 |
# File 'lib/unteilbar.rb', line 19 def to_html File.open('./signer.html', 'wb') do |file| @reader.signer.each do |signer| file.puts create_line(signer) end end end |