Class: Keepr::JournalExport
- Inherits:
-
Object
- Object
- Keepr::JournalExport
- Defined in:
- lib/keepr/journal_export.rb
Instance Method Summary collapse
-
#initialize(journals, header_options = {}, &block) ⇒ JournalExport
constructor
A new instance of JournalExport.
- #to_file(filename) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(journals, header_options = {}, &block) ⇒ JournalExport
Returns a new instance of JournalExport.
4 5 6 7 8 |
# File 'lib/keepr/journal_export.rb', line 4 def initialize(journals, = {}, &block) @journals = journals @header_options = @block = block end |
Instance Method Details
#to_file(filename) ⇒ Object
14 15 16 |
# File 'lib/keepr/journal_export.rb', line 14 def to_file(filename) export.to_file(filename) end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/keepr/journal_export.rb', line 10 def to_s export.to_s end |