Class: Bkmrq::Application
- Inherits:
-
Object
- Object
- Bkmrq::Application
- Defined in:
- lib/bkmrq/application.rb
Overview
Application Core
Instance Attribute Summary collapse
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
- #export! ⇒ Object
-
#initialize(opts: {}) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(opts: {}) ⇒ Application
Returns a new instance of Application.
15 16 17 |
# File 'lib/bkmrq/application.rb', line 15 def initialize(opts: {}) @opts = opts end |
Instance Attribute Details
#opts ⇒ Object
Returns the value of attribute opts.
13 14 15 |
# File 'lib/bkmrq/application.rb', line 13 def opts @opts end |
Instance Method Details
#export! ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/bkmrq/application.rb', line 19 def export! Bkmrq::Extractors.run(opts) .then { |extracted_file| Bkmrq::Parsers.run(extracted_file, opts) } .then { |parsed_file| Bkmrq::Filter.run(parsed_file, opts) } .then { |filtered_bookmarks| Bkmrq::Formatters.run(filtered_bookmarks, opts) } .then { |formatted_bookmarks| Bkmrq::Writer.run(formatted_bookmarks, opts) } end |