Class: Ppp::Card::Plain
Instance Attribute Summary
Attributes inherited from Base
#card_number, #row_count, #title
Instance Method Summary collapse
-
#initialize(generator, opts = {}) ⇒ Plain
constructor
A new instance of Plain.
- #to_s ⇒ Object
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_s ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/ppp/card/plain.rb', line 9 def to_s line( ) + line( :pad, title_str ) + line( ) + line( :pad, header ) + row_lines.join( '' ) + line( ) end |