Class: PnoteClient::ConsoleDisplay
- Inherits:
-
Object
- Object
- PnoteClient::ConsoleDisplay
- Defined in:
- lib/pnote_client/display/console_display.rb
Instance Method Summary collapse
- #binary_converted(count:, current:) ⇒ Object
-
#initialize ⇒ ConsoleDisplay
constructor
implement HmlToPnoteConverter Delegate implement PnoteClient Delegate.
- #paragraph_converted(count:, current:) ⇒ Object
Constructor Details
#initialize ⇒ ConsoleDisplay
implement HmlToPnoteConverter Delegate implement PnoteClient Delegate
6 7 |
# File 'lib/pnote_client/display/console_display.rb', line 6 def initialize end |
Instance Method Details
#binary_converted(count:, current:) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/pnote_client/display/console_display.rb', line 18 def binary_converted(count:, current:) print_progress(count, current, "Converting binaries") # Print newline when task is done if count == (current + 1) printf("\n") end end |
#paragraph_converted(count:, current:) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/pnote_client/display/console_display.rb', line 9 def paragraph_converted(count:, current:) print_progress(count, current, "Converting paragraphs") # Print newline when task is done if count == (current + 1) printf("\n") end end |