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
- #print_validation(result) ⇒ 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
22 23 24 25 26 27 28 29 |
# File 'lib/pnote_client/display/console_display.rb', line 22 def binary_converted(count:, current:) print_progress(count, current, "바이너리 파일 변환 중") # Print newline when task is done if count == (current + 1) printf("\n") end end |
#paragraph_converted(count:, current:) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/pnote_client/display/console_display.rb', line 13 def paragraph_converted(count:, current:) print_progress(count, current, "문단 변환 중") # Print newline when task is done if count == (current + 1) printf("\n") end end |
#print_validation(result) ⇒ Object
9 10 11 |
# File 'lib/pnote_client/display/console_display.rb', line 9 def print_validation(result) puts "검증 결과: 경고 #{result[:warnings].length}개, 에러 #{result[:errors].length}개" end |