Class: Ppp::Card::Plain

Inherits:
Base
  • Object
show all
Defined in:
lib/ppp/card/plain.rb

Instance Attribute Summary

Attributes inherited from Base

#card_number, #row_count, #title

Instance Method Summary collapse

Methods inherited from Base

#code_length, #codes, #passcode, #passcodes_per_card, #passcodes_per_line, #verify

Constructor Details

#initialize(generator, opts = {}) ⇒ Plain

Returns a new instance of Plain.



5
6
7
# File 'lib/ppp/card/plain.rb', line 5

def initialize generator, opts={}
  super
end

Instance Method Details

#to_sObject



9
10
11
12
13
14
15
16
# File 'lib/ppp/card/plain.rb', line 9

def to_s
  line( bar )             +
  line( :pad, title_str ) +
  line( split_bar )       +
  line( :pad, header )    +
  row_lines.join( '' )    +
  line( split_bar )
end