Class: Gm::Notepad::App
- Inherits:
-
Object
- Object
- Gm::Notepad::App
- Extended by:
- Dry::Initializer
- Defined in:
- lib/gm/notepad/app.rb
Overview
Responsible for recording entries and then dumping them accordingly.
Instance Method Summary collapse
- #close! ⇒ Object
-
#initialize(*args) ⇒ App
constructor
A new instance of App.
- #process(text:) ⇒ Object
Constructor Details
#initialize(*args) ⇒ App
Returns a new instance of App.
15 16 17 18 |
# File 'lib/gm/notepad/app.rb', line 15 def initialize(*args) super open! end |
Instance Method Details
#close! ⇒ Object
25 26 27 |
# File 'lib/gm/notepad/app.rb', line 25 def close! renderer.close! end |
#process(text:) ⇒ Object
20 21 22 23 |
# File 'lib/gm/notepad/app.rb', line 20 def process(text:) output = input_processor.convert_to_output(input: text) renderer.render(output: output) end |