Class: Unteilbar::Signatures

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

Overview

signatures by wp-forms

Instance Method Summary collapse

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_htmlObject

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